pub struct LayoutField {
pub path: &'static str,
pub ty: &'static str,
pub lo: u32,
pub hi: u32,
pub nested: Option<fn() -> &'static [LayoutField]>,
}Expand description
One field’s placement: an inclusive bit range, MSB-first from byte 0 of the
body that declares it. For the file offset a hex dump shows, add the enclosing
placements and the container’s body start — 0x2c on a type-1 file, 0x18 on
a type-0.
Fields§
§path: &'static strThe field’s registry path within its body — the field’s own name. A walker prefixes nested children with this path and a dot.
ty: &'static strThe field’s Rust type, as written.
lo: u32§hi: u32§nested: Option<fn() -> &'static [LayoutField]>The nested body’s own layout, for an #[at] field; None for a leaf.
Trait Implementations§
Source§impl Clone for LayoutField
impl Clone for LayoutField
Source§fn clone(&self) -> LayoutField
fn clone(&self) -> LayoutField
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 moreAuto Trait Implementations§
impl Freeze for LayoutField
impl RefUnwindSafe for LayoutField
impl Send for LayoutField
impl Sync for LayoutField
impl Unpin for LayoutField
impl UnsafeUnpin for LayoutField
impl UnwindSafe for LayoutField
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