pub struct ListLayout { /* private fields */ }Expand description
The layout for a dynamically sized list. The list layout is just a length and an item layout.
Implementations§
Source§impl ListLayout
impl ListLayout
Sourcepub const fn new(
size: usize,
len_offset: usize,
len_layout: PrimitiveLayout,
data_offset: usize,
data_layout: ArrayLayout,
) -> Self
pub const fn new( size: usize, len_offset: usize, len_layout: PrimitiveLayout, data_offset: usize, data_layout: ArrayLayout, ) -> Self
Create a new list layout
Trait Implementations§
Source§impl Clone for ListLayout
impl Clone for ListLayout
Source§fn clone(&self) -> ListLayout
fn clone(&self) -> ListLayout
Returns a duplicate 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 ListLayout
impl Debug for ListLayout
impl Copy for ListLayout
Auto Trait Implementations§
impl Freeze for ListLayout
impl RefUnwindSafe for ListLayout
impl Send for ListLayout
impl Sync for ListLayout
impl Unpin for ListLayout
impl UnwindSafe for ListLayout
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