Enum rustdoc_json_types::ItemEnum [−][src]
pub enum ItemEnum {
Show 23 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),
PrimitiveType(String),
AssocConst {
type_: Type,
default: Option<String>,
},
AssocType {
bounds: Vec<GenericBound>,
default: Option<Type>,
},
}
Variants
Module(Module)
Tuple Fields of Module
0: Module
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
type
s from an extern block
Macro(String)
Declarative macro_rules! macro
Tuple Fields of Macro
0: String
ProcMacro(ProcMacro)
Tuple Fields of ProcMacro
0: ProcMacro
PrimitiveType(String)
Tuple Fields of PrimitiveType
0: String
Fields of AssocType
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ItemEnum
impl UnwindSafe for ItemEnum
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 376 bytes
Size for each variant:
Module
: 32 bytesExternCrate
: 48 bytesImport
: 80 bytesUnion
: 104 bytesStruct
: 104 bytesStructField
: 88 bytesEnum
: 104 bytesVariant
: 32 bytesFunction
: 240 bytesTrait
: 128 bytesTraitAlias
: 72 bytesMethod
: 248 bytesImpl
: 368 bytesTypedef
: 136 bytesOpaqueTy
: 72 bytesConstant
: 144 bytesStatic
: 120 bytesForeignType
: 0 bytesMacro
: 24 bytesProcMacro
: 32 bytesPrimitiveType
: 24 bytesAssocConst
: 112 bytesAssocType
: 112 bytes