Enum rustdoc_types::ItemEnum[][src]

pub enum ItemEnum {
Show 22 variants 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)

Tuple Fields of Module

0: Module
ExternCrate

Fields of ExternCrate

name: Stringrename: Option<String>
Import(Import)

Tuple Fields of Import

0: Import
Union(Union)

Tuple Fields of Union

0: Union
Struct(Struct)

Tuple Fields of Struct

0: Struct
StructField(Type)

Tuple Fields of StructField

0: Type
Enum(Enum)

Tuple Fields of Enum

0: Enum
Variant(Variant)

Tuple Fields of Variant

0: Variant
Function(Function)

Tuple Fields of Function

0: Function
Trait(Trait)

Tuple Fields of Trait

0: Trait
TraitAlias(TraitAlias)

Tuple Fields of TraitAlias

0: TraitAlias
Method(Method)

Tuple Fields of Method

0: Method
Impl(Impl)

Tuple Fields of Impl

0: Impl
Typedef(Typedef)

Tuple Fields of Typedef

0: Typedef
OpaqueTy(OpaqueTy)

Tuple Fields of OpaqueTy

0: OpaqueTy
Constant(Constant)

Tuple Fields of Constant

0: Constant
Static(Static)

Tuple Fields of Static

0: Static
ForeignType

types from an extern block

Macro(String)

Declarative macro_rules! macro

Tuple Fields of Macro

0: String
ProcMacro(ProcMacro)

Tuple Fields of ProcMacro

0: 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.