[][src]Enum rustdoc_types::ItemEnum

pub enum ItemEnum {
    ModuleItem(Module),
    ExternCrateItem {
        name: String,
        rename: Option<String>,
    },
    ImportItem(Import),
    StructItem(Struct),
    StructFieldItem(Type),
    EnumItem(Enum),
    VariantItem(Variant),
    FunctionItem(Function),
    TraitItem(Trait),
    TraitAliasItem(TraitAlias),
    MethodItem(Method),
    ImplItem(Impl),
    TypedefItem(Typedef),
    OpaqueTyItem(OpaqueTy),
    ConstantItem(Constant),
    StaticItem(Static),
    ForeignTypeItem,
    MacroItem(String),
    ProcMacroItem(ProcMacro),
    AssocConstItem {
        type_: Type,
        default: Option<String>,
    },
    AssocTypeItem {
        bounds: Vec<GenericBound>,
        default: Option<Type>,
    },
}

Variants

ModuleItem(Module)
ExternCrateItem

Fields of ExternCrateItem

name: Stringrename: Option<String>
ImportItem(Import)
StructItem(Struct)
StructFieldItem(Type)
EnumItem(Enum)
VariantItem(Variant)
FunctionItem(Function)
TraitItem(Trait)
TraitAliasItem(TraitAlias)
MethodItem(Method)
ImplItem(Impl)
TypedefItem(Typedef)
OpaqueTyItem(OpaqueTy)
ConstantItem(Constant)
StaticItem(Static)
ForeignTypeItem

types from an extern block

MacroItem(String)

Declarative macro_rules! macro

ProcMacroItem(ProcMacro)
AssocConstItem

Fields of AssocConstItem

type_: Typedefault: Option<String>

e.g. const X: usize = 5;

AssocTypeItem

Fields of AssocTypeItem

bounds: Vec<GenericBound>default: Option<Type>

e.g. type X = usize;

Trait Implementations

impl Clone for ItemEnum[src]

impl Debug for ItemEnum[src]

impl<'de> Deserialize<'de> for ItemEnum[src]

impl PartialEq<ItemEnum> for ItemEnum[src]

impl Serialize for ItemEnum[src]

impl StructuralPartialEq for ItemEnum[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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, 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.