pub struct Layout { /* private fields */ }
Expand description
Defines the layout of memory to be allocated.
Implementations§
Source§impl Layout
impl Layout
pub fn from_size_align(size: usize, align: usize) -> Self
Sourcepub fn from_type_array<T>(length: usize) -> Self
pub fn from_type_array<T>(length: usize) -> Self
Create a new instance of Layout from the given array-length and type parameter.
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