Enum rustdoc_seeker::TypeItem [−][src]
pub enum TypeItem { Module(Atom), ExternCrate(Atom), Import(Atom), Struct(Atom), Enum(Atom), Function(Atom), Typedef(Atom), Static(Atom), Trait(Atom), Impl(Atom), TyMethod(Atom), Method(Atom), StructField(Atom), Variant(Atom), Macro(Atom), Primitive(Atom), AssociatedType(Atom), Constant(Atom), AssociatedConst(Atom), Union(Atom), ForeignType(Atom), Keyword(Atom), Existential(Atom), }
TypeItem represent an item with type,
Use Display
to get the type dot name
format of the item
Example
assert_eq!("module.vec", TypeItme::Module(vec)); assert_eq!("macro.vec", TypeItme::Macro(vec)); assert_eq!("fn.vec", TypeItme::Function(vec)); // the only two exceptions assert_eq!("type.vec", TypeItme::Typedef(vec)); // the only two exceptions
Variants
Module(Atom)
ExternCrate(Atom)
Import(Atom)
Struct(Atom)
Enum(Atom)
Function(Atom)
Typedef(Atom)
Static(Atom)
Trait(Atom)
Impl(Atom)
TyMethod(Atom)
Method(Atom)
StructField(Atom)
Variant(Atom)
Macro(Atom)
Primitive(Atom)
AssociatedType(Atom)
Constant(Atom)
AssociatedConst(Atom)
Union(Atom)
ForeignType(Atom)
Keyword(Atom)
Existential(Atom)
Methods
impl TypeItem
[src]
impl TypeItem
Trait Implementations
impl Clone for TypeItem
[src]
impl Clone for TypeItem
fn clone(&self) -> TypeItem
[src]
fn clone(&self) -> TypeItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for TypeItem
[src]
impl Debug for TypeItem
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for TypeItem
[src]
impl Eq for TypeItem
impl Hash for TypeItem
[src]
impl Hash for TypeItem
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for TypeItem
[src]
impl PartialEq for TypeItem
fn eq(&self, other: &TypeItem) -> bool
[src]
fn eq(&self, other: &TypeItem) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TypeItem) -> bool
[src]
fn ne(&self, other: &TypeItem) -> bool
This method tests for !=
.
impl AsRef<Atom> for TypeItem
[src]
impl AsRef<Atom> for TypeItem
impl Display for TypeItem
[src]
impl Display for TypeItem