Struct bones_ecs::prelude::SchemaLayoutInfo
pub struct SchemaLayoutInfo<'a> {
pub layout: Layout,
pub field_offsets: Vec<(Option<&'a str>, usize)>,
}
Expand description
Layout information computed for SchemaData
.
Fields§
§layout: Layout
The layout of the type.
field_offsets: Vec<(Option<&'a str>, usize)>
If this is a struct, then the field offsets will contain the byte offset from the front of the struct to each field in the order the fields are declared.
If this is an enum, there will be exactly one entry specifying the offset from the beginning of the struct to the enum value.
Trait Implementations§
§impl<'a> Clone for SchemaLayoutInfo<'a>
impl<'a> Clone for SchemaLayoutInfo<'a>
§fn clone(&self) -> SchemaLayoutInfo<'a>
fn clone(&self) -> SchemaLayoutInfo<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> Freeze for SchemaLayoutInfo<'a>
impl<'a> RefUnwindSafe for SchemaLayoutInfo<'a>
impl<'a> Send for SchemaLayoutInfo<'a>
impl<'a> Sync for SchemaLayoutInfo<'a>
impl<'a> Unpin for SchemaLayoutInfo<'a>
impl<'a> UnwindSafe for SchemaLayoutInfo<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)