pub enum Repr {
Rust,
C,
Transparent,
Packed(usize),
}Expand description
The #[repr(..)] of a type, as far as it affects layout stability.
Variants§
Rust
Default Rust representation (layout not guaranteed stable).
C
#[repr(C)] — stable, FFI-compatible layout.
Transparent
#[repr(transparent)].
Packed(usize)
#[repr(packed(n))] with the given alignment.
Trait Implementations§
impl Copy for Repr
impl Eq for Repr
impl StructuralPartialEq for Repr
Auto Trait Implementations§
impl Freeze for Repr
impl RefUnwindSafe for Repr
impl Send for Repr
impl Sync for Repr
impl Unpin for Repr
impl UnsafeUnpin for Repr
impl UnwindSafe for Repr
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