pub struct FlatDataFacet {
pub is_plain: bool,
pub loan_alignment: Option<u8>,
pub explicit_fixed_layout: bool,
}Expand description
FlatData information attached to a node. Spec §4.5.
is_plain is recorded rather than derived on the spot because a
frontend may assert it — a vendor extension can declare a type plain
— and because the derivation walks the whole reachable graph.
Fields§
§is_plain: boolWhether the type is plain: fixed size, no indirection, loanable without serialisation.
loan_alignment: Option<u8>Alignment the zero-copy loan path requires.
explicit_fixed_layout: boolWhether the frontend asked for fixed-size layout explicitly rather than the property being inferred.
Trait Implementations§
Source§impl Clone for FlatDataFacet
impl Clone for FlatDataFacet
impl Copy for FlatDataFacet
Source§impl Debug for FlatDataFacet
impl Debug for FlatDataFacet
Source§impl Default for FlatDataFacet
impl Default for FlatDataFacet
impl Eq for FlatDataFacet
Source§impl PartialEq for FlatDataFacet
impl PartialEq for FlatDataFacet
impl StructuralPartialEq for FlatDataFacet
Auto Trait Implementations§
impl Freeze for FlatDataFacet
impl RefUnwindSafe for FlatDataFacet
impl Send for FlatDataFacet
impl Sync for FlatDataFacet
impl Unpin for FlatDataFacet
impl UnsafeUnpin for FlatDataFacet
impl UnwindSafe for FlatDataFacet
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