pub struct SchemaLayout;Expand description
Schema-level layout entry point. Computes the offset table for the flat record area; tail-area layout (for String / List in Phase 2.b) will be returned through a sibling helper once those types land.
Implementations§
Source§impl SchemaLayout
impl SchemaLayout
Sourcepub fn offsets_for(schema: &Schema) -> Result<OffsetTable, LayoutError>
pub fn offsets_for(schema: &Schema) -> Result<OffsetTable, LayoutError>
Compute the OffsetTable for schema under the v1 layout.
The table covers only the fixed (root) area. PointerIndirect
fields contribute a u32 slot here; the actual tail-area
payload is placed at write time by
crate::buffer::BufferBuilder.
Auto Trait Implementations§
impl Freeze for SchemaLayout
impl RefUnwindSafe for SchemaLayout
impl Send for SchemaLayout
impl Sync for SchemaLayout
impl Unpin for SchemaLayout
impl UnsafeUnpin for SchemaLayout
impl UnwindSafe for SchemaLayout
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more