pub struct XabiTypeLayout {
pub name: &'static str,
pub stability: XabiLayoutStability,
pub size: usize,
pub align: usize,
pub fields: &'static [XabiFieldLayout],
}Expand description
Layout metadata for a C-compatible type.
Fields§
§name: &'static strStable type name used in snapshots.
stability: XabiLayoutStabilityCompatibility rule for this type.
size: usizeRuntime size of the type.
align: usizeRuntime alignment of the type.
fields: &'static [XabiFieldLayout]Field layouts in declaration order.
Implementations§
Source§impl XabiTypeLayout
impl XabiTypeLayout
Sourcepub const fn new(
name: &'static str,
stability: XabiLayoutStability,
size: usize,
align: usize,
fields: &'static [XabiFieldLayout],
) -> Self
pub const fn new( name: &'static str, stability: XabiLayoutStability, size: usize, align: usize, fields: &'static [XabiFieldLayout], ) -> Self
Create type layout metadata.
Trait Implementations§
Source§impl Clone for XabiTypeLayout
impl Clone for XabiTypeLayout
Source§fn clone(&self) -> XabiTypeLayout
fn clone(&self) -> XabiTypeLayout
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 moreimpl Copy for XabiTypeLayout
Source§impl Debug for XabiTypeLayout
impl Debug for XabiTypeLayout
impl Eq for XabiTypeLayout
Source§impl PartialEq for XabiTypeLayout
impl PartialEq for XabiTypeLayout
Source§fn eq(&self, other: &XabiTypeLayout) -> bool
fn eq(&self, other: &XabiTypeLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for XabiTypeLayout
Auto Trait Implementations§
impl Freeze for XabiTypeLayout
impl RefUnwindSafe for XabiTypeLayout
impl Send for XabiTypeLayout
impl Sync for XabiTypeLayout
impl Unpin for XabiTypeLayout
impl UnsafeUnpin for XabiTypeLayout
impl UnwindSafe for XabiTypeLayout
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