#[repr(C)]pub struct Layout {
pub size: usize,
pub align: usize,
}Expand description
Similar to core::alloc::Layout, but repr(C)
Fields§
§size: usizeThe size in bytes
align: usizeThe minimum alignment in bytes
Trait Implementations§
impl Copy for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnwindSafe for Layout
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