pub struct FieldLayout {
pub offset_bits: u64,
pub size_bits: u64,
}
Expand description
The layout of a field.
Fields§
§offset_bits: u64
The offset of the struct, in bits, from the start of the struct.
size_bits: u64
The size, in bits, of the field.
For bit-fields, this is the width of the field.
Trait Implementations§
Source§impl Clone for FieldLayout
impl Clone for FieldLayout
Source§fn clone(&self) -> FieldLayout
fn clone(&self) -> FieldLayout
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 FieldLayout
impl Debug for FieldLayout
Source§impl Default for FieldLayout
impl Default for FieldLayout
Source§fn default() -> FieldLayout
fn default() -> FieldLayout
Returns the “default value” for a type. Read more
Source§impl Into<()> for FieldLayout
impl Into<()> for FieldLayout
Source§impl PartialEq for FieldLayout
impl PartialEq for FieldLayout
impl Copy for FieldLayout
impl Eq for FieldLayout
impl StructuralPartialEq for FieldLayout
Auto Trait Implementations§
impl Freeze for FieldLayout
impl RefUnwindSafe for FieldLayout
impl Send for FieldLayout
impl Sync for FieldLayout
impl Unpin for FieldLayout
impl UnwindSafe for FieldLayout
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