pub struct LayoutInfo {
pub size: usize,
pub align: usize,
pub field_offsets: Option<Vec<FieldLayoutInfo>>,
pub variants: Option<Vec<VariantLayoutInfo>>,
pub is_sized: bool,
pub is_copy: bool,
pub is_send: bool,
pub is_sync: bool,
}Expand description
Memory layout information for a type.
Fieldsยง
ยงsize: usizeSize in bytes
align: usizeAlignment in bytes
field_offsets: Option<Vec<FieldLayoutInfo>>Field offsets (for structs)
variants: Option<Vec<VariantLayoutInfo>>Variant layouts (for enums)
is_sized: boolWhether this type is sized
is_copy: boolWhether this type is Copy
is_send: boolWhether this type is Send
is_sync: boolWhether this type is Sync
Trait Implementationsยง
Sourceยงimpl Clone for LayoutInfo
impl Clone for LayoutInfo
Sourceยงfn clone(&self) -> LayoutInfo
fn clone(&self) -> LayoutInfo
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 LayoutInfo
impl Debug for LayoutInfo
Sourceยงimpl<'de> Deserialize<'de> for LayoutInfo
impl<'de> Deserialize<'de> for LayoutInfo
Sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementationsยง
impl Freeze for LayoutInfo
impl RefUnwindSafe for LayoutInfo
impl Send for LayoutInfo
impl Sync for LayoutInfo
impl Unpin for LayoutInfo
impl UnwindSafe for LayoutInfo
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