Struct rustc_hir::hir::AnonConst [−][src]
Expand description
A constant (expression) that’s not an item or associated item,
but needs its own DefId for type-checking, const-eval, etc.
These are usually found nested inside types (e.g., array lengths)
or expressions (e.g., repeat counts), and also used to define
explicit discriminant values for enum variants.
Fields
hir_id: HirIdbody: BodyIdTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AnonConstimpl UnwindSafe for AnonConstBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 16 bytes