Struct rustdoc::clean::types::VariantStruct [−][src]
pub(crate) struct VariantStruct {
pub(crate) struct_type: CtorKind,
pub(crate) fields: Vec<Item>,
pub(crate) fields_stripped: bool,
}
Expand description
This is a more limited form of the standard Struct, different in that it lacks the things most items have (name, id, parameterization). Found only as a variant in an enum.
Fields
struct_type: CtorKind
fields: Vec<Item>
fields_stripped: bool
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for VariantStruct
impl !Send for VariantStruct
impl !Sync for VariantStruct
impl Unpin for VariantStruct
impl !UnwindSafe for VariantStruct
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. 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: 32 bytes