pub struct FixedLayout {
pub bitmap_bytes: u32,
pub slots: Vec<u32>,
pub size: u32,
pub align: u32,
pub dense: bool,
}Expand description
Fixed layout: constant slot offset per field. bitmap_bytes is 0 for a
dense struct (no presence bitmap), otherwise ceil(field_count / 8).
Fields§
§bitmap_bytes: u32§slots: Vec<u32>Slot offset (relative to the struct block start) per field position.
size: u32Total block size, padded to align.
align: u32Max field alignment (at least 1).
dense: boolTrait Implementations§
Source§impl Clone for FixedLayout
impl Clone for FixedLayout
Source§fn clone(&self) -> FixedLayout
fn clone(&self) -> FixedLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FixedLayout
impl Debug for FixedLayout
impl Eq for FixedLayout
Source§impl PartialEq for FixedLayout
impl PartialEq for FixedLayout
impl StructuralPartialEq for FixedLayout
Auto Trait Implementations§
impl Freeze for FixedLayout
impl RefUnwindSafe for FixedLayout
impl Send for FixedLayout
impl Sync for FixedLayout
impl Unpin for FixedLayout
impl UnsafeUnpin for FixedLayout
impl UnwindSafe for FixedLayout
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