Enum rustc_hir::def::CtorOf [−][src]
pub enum CtorOf {
Struct,
Variant,
}
Expand description
Encodes if a DefKind::Ctor
is the constructor of an enum variant or a struct.
Variants
This DefKind::Ctor
is a synthesized constructor of a tuple or unit struct.
This DefKind::Ctor
is a synthesized constructor of a tuple or unit variant.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CtorOf
impl UnwindSafe for CtorOf
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: 1 byte
Size for each variant:
Struct
: 0 bytesVariant
: 0 bytes