Type Alias TypesItem

Source
pub type TypesItem = Item<ModuleDefId, ImportOrExternCrate>;

Aliased Type§

struct TypesItem {
    pub def: ModuleDefId,
    pub vis: Visibility,
    pub import: Option<ImportOrExternCrate>,
}

Fields§

§def: ModuleDefId§vis: Visibility§import: Option<ImportOrExternCrate>

Trait Implementations

Source§

impl<Def: Clone, Import: Clone> Clone for Item<Def, Import>

Source§

fn clone(&self) -> Item<Def, Import>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Def: Debug, Import: Debug> Debug for Item<Def, Import>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Def: Hash, Import: Hash> Hash for Item<Def, Import>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<Def: PartialEq, Import: PartialEq> PartialEq for Item<Def, Import>

Source§

fn eq(&self, other: &Item<Def, Import>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Def: Copy, Import: Copy> Copy for Item<Def, Import>

Source§

impl<Def: Eq, Import: Eq> Eq for Item<Def, Import>

Source§

impl<Def, Import> StructuralPartialEq for Item<Def, Import>