Enum rustdoc_json_types::ItemEnum[−][src]

pub enum ItemEnum {
    Module(Module),
    ExternCrate {
        name: String,
        rename: Option<String>,
    },
    Import(Import),
    Union(Union),
    Struct(Struct),
    StructField(Type),
    Enum(Enum),
    Variant(Variant),
    Function(Function),
    Trait(Trait),
    TraitAlias(TraitAlias),
    Method(Method),
    Impl(Impl),
    Typedef(Typedef),
    OpaqueTy(OpaqueTy),
    Constant(Constant),
    Static(Static),
    ForeignType,
    Macro(String),
    ProcMacro(ProcMacro),
    AssocConst {
        type_: Type,
        default: Option<String>,
    },
    AssocType {
        bounds: Vec<GenericBound>,
        default: Option<Type>,
    },
}

Variants

Module(Module)
ExternCrate

Fields of ExternCrate

name: Stringrename: Option<String>
Import(Import)
Union(Union)
Struct(Struct)
StructField(Type)
Enum(Enum)
Variant(Variant)
Function(Function)
Trait(Trait)
TraitAlias(TraitAlias)
Method(Method)
Impl(Impl)
Typedef(Typedef)
OpaqueTy(OpaqueTy)
Constant(Constant)
Static(Static)
ForeignType

types from an extern block

Macro(String)

Declarative macro_rules! macro

ProcMacro(ProcMacro)
AssocConst

Fields of AssocConst

type_: Typedefault: Option<String>

e.g. const X: usize = 5;

AssocType

Fields of AssocType

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

impl RefUnwindSafe for ItemEnum

impl Send for ItemEnum

impl Sync for ItemEnum

impl Unpin for ItemEnum

impl UnwindSafe for ItemEnum

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.