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: ModuleImport(Import)Tuple Fields of Import
0: ImportUnion(Union)Tuple Fields of Union
0: UnionStruct(Struct)Tuple Fields of Struct
0: StructStructField(Type)Tuple Fields of StructField
0: TypeEnum(Enum)Tuple Fields of Enum
0: EnumVariant(Variant)Tuple Fields of Variant
0: VariantFunction(Function)Tuple Fields of Function
0: FunctionTrait(Trait)Tuple Fields of Trait
0: TraitTraitAlias(TraitAlias)Tuple Fields of TraitAlias
0: TraitAliasMethod(Method)Tuple Fields of Method
0: MethodImpl(Impl)Tuple Fields of Impl
0: ImplTypedef(Typedef)Tuple Fields of Typedef
0: TypedefOpaqueTy(OpaqueTy)Tuple Fields of OpaqueTy
0: OpaqueTyConstant(Constant)Tuple Fields of Constant
0: ConstantStatic(Static)Tuple Fields of Static
0: Statictypes from an extern block
Macro(String)Declarative macro_rules! macro
Tuple Fields of Macro
0: StringProcMacro(ProcMacro)Tuple Fields of ProcMacro
0: ProcMacroPrimitiveType(String)Tuple Fields of PrimitiveType
0: StringFields 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