Enum rustc_attr::ReprAttr
source · pub enum ReprAttr {
ReprInt(IntType),
ReprC,
ReprPacked(u32),
ReprSimd,
ReprTransparent,
ReprAlign(u32),
}
Variants
ReprInt(IntType)
ReprC
ReprPacked(u32)
ReprSimd
ReprTransparent
ReprAlign(u32)
Trait Implementations
impl Copy for ReprAttr
impl StructuralPartialEq for ReprAttr
Auto Trait Implementations
impl RefUnwindSafe for ReprAttr
impl Send for ReprAttr
impl Sync for ReprAttr
impl Unpin for ReprAttr
impl UnwindSafe for ReprAttr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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: 8 bytes
Size for each variant:
ReprInt
: 2 bytesReprC
: 0 bytesReprPacked
: 7 bytesReprSimd
: 0 bytesReprTransparent
: 0 bytesReprAlign
: 7 bytes