Struct rustc_target::abi::Scalar [−][src]
pub struct Scalar {
pub value: Primitive,
pub valid_range: WrappingRange,
}
Expand description
Information about one scalar component of a Rust type.
Fields
value: Primitive
valid_range: WrappingRange
Implementations
Returns true
if all possible numbers are valid, i.e valid_range
covers the whole layout
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Scalar
impl UnwindSafe for Scalar
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: 40 bytes