pub struct RecordLayout {
pub layout: Layout,
pub fields: Vec<Field>,
pub variable: Option<VariableLayout>,
}Expand description
A record, laid out.
Fields§
§layout: LayoutThe size and alignment of the record.
For a record whose size is not known here the alignment is still the right one and the
size is zero, with RecordLayout::variable holding the recipe that says how long it
really is.
fields: Vec<Field>The members, one per declaration and in the same order, zero width bit-fields included.
variable: Option<VariableLayout>What the record’s size and its members’ offsets are, where they are not numbers.
Trait Implementations§
Source§impl Clone for RecordLayout
impl Clone for RecordLayout
Source§impl Debug for RecordLayout
impl Debug for RecordLayout
impl Eq for RecordLayout
Source§impl PartialEq for RecordLayout
impl PartialEq for RecordLayout
impl StructuralPartialEq for RecordLayout
Auto Trait Implementations§
impl Freeze for RecordLayout
impl RefUnwindSafe for RecordLayout
impl Send for RecordLayout
impl Sync for RecordLayout
impl Unpin for RecordLayout
impl UnsafeUnpin for RecordLayout
impl UnwindSafe for RecordLayout
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