Enum rustc_attr::builtin::ReprAttr
source · pub enum ReprAttr {
ReprInt(IntType),
ReprRust,
ReprC,
ReprPacked(u32),
ReprSimd,
ReprTransparent,
ReprAlign(u32),
}
Variants§
Trait Implementations§
source§impl PartialEq<ReprAttr> for ReprAttr
impl PartialEq<ReprAttr> for ReprAttr
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn 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 bytesReprRust
: 0 bytesReprC
: 0 bytesReprPacked
: 7 bytesReprSimd
: 0 bytesReprTransparent
: 0 bytesReprAlign
: 7 bytes