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

Methods

impl TypeItem
[src]

Trait Implementations

impl Clone for TypeItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TypeItem
[src]

Formats the value using the given formatter. Read more

impl Eq for TypeItem
[src]

impl Hash for TypeItem
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for TypeItem
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl AsRef<Atom> for TypeItem
[src]

Performs the conversion.

impl Display for TypeItem
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for TypeItem

impl Sync for TypeItem