pub enum Layout {
Enum(EnumLayout),
Struct(StructLayout),
List(ListLayout),
Primitive(PrimitiveLayout),
}
Expand description
The layout for a type. This layout defines a sequence of locations and reversed or not bytes. These bytes will be copied from during serialization and copied into during deserialization.
Variants§
Enum(EnumLayout)
An enum layout
Struct(StructLayout)
A struct layout
List(ListLayout)
A list layout
Primitive(PrimitiveLayout)
A primitive layout
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnwindSafe for Layout
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