[][src]Enum rustdoc_seeker::TypeItem

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 or fmt_url 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]

pub fn new(tag: usize, data: Atom) -> TypeItem[src]

Trait Implementations

impl AsRef<Atom<EmptyStaticAtomSet>> for TypeItem[src]

impl Clone for TypeItem[src]

impl Debug for TypeItem[src]

impl Display for TypeItem[src]

impl Eq for TypeItem[src]

impl PartialEq<TypeItem> for TypeItem[src]

impl StructuralEq for TypeItem[src]

impl StructuralPartialEq for TypeItem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.