pub struct StructLayout { /* private fields */ }
Expand description
Layout for a struct. The struct layout is just a list of fields with offsets
Implementations§
Source§impl StructLayout
impl StructLayout
Sourcepub const fn new(size: usize, data: &'static [StructFieldLayout]) -> Self
pub const fn new(size: usize, data: &'static [StructFieldLayout]) -> Self
Create a new struct layout
Trait Implementations§
Source§impl Clone for StructLayout
impl Clone for StructLayout
Source§fn clone(&self) -> StructLayout
fn clone(&self) -> StructLayout
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StructLayout
impl Debug for StructLayout
impl Copy for StructLayout
Auto Trait Implementations§
impl Freeze for StructLayout
impl RefUnwindSafe for StructLayout
impl Send for StructLayout
impl Sync for StructLayout
impl Unpin for StructLayout
impl UnwindSafe for StructLayout
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