pub struct LayoutSpec { /* private fields */ }Implementations§
Source§impl LayoutSpec
impl LayoutSpec
pub fn flat(buffer: ByteRange, row_count: u64) -> Self
Sourcepub fn chunked(
children: Vec<LayoutSpec>,
row_count: u64,
metadata: Option<Bytes>,
) -> Self
pub fn chunked( children: Vec<LayoutSpec>, row_count: u64, metadata: Option<Bytes>, ) -> Self
Create a chunked layout with children.
has_metadata indicates whether first child is a layout containing metadata about other children.
pub fn column(children: Vec<LayoutSpec>, row_count: u64) -> Self
Trait Implementations§
Source§impl Clone for LayoutSpec
impl Clone for LayoutSpec
Source§fn clone(&self) -> LayoutSpec
fn clone(&self) -> LayoutSpec
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 moreSource§impl Debug for LayoutSpec
impl Debug for LayoutSpec
Source§impl WriteFlatBuffer for LayoutSpec
impl WriteFlatBuffer for LayoutSpec
type Target<'a> = Layout<'a>
fn write_flatbuffer<'fb>( &self, fbb: &mut FlatBufferBuilder<'fb>, ) -> WIPOffset<Self::Target<'fb>>
impl FlatBufferRoot for LayoutSpec
Auto Trait Implementations§
impl !Freeze for LayoutSpec
impl RefUnwindSafe for LayoutSpec
impl Send for LayoutSpec
impl Sync for LayoutSpec
impl Unpin for LayoutSpec
impl UnwindSafe for LayoutSpec
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§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 moreSource§impl<F> WriteFlatBufferExt for Fwhere
F: WriteFlatBuffer + FlatBufferRoot,
impl<F> WriteFlatBufferExt for Fwhere
F: WriteFlatBuffer + FlatBufferRoot,
Source§fn write_flatbuffer_bytes(&self) -> Buffer
fn write_flatbuffer_bytes(&self) -> Buffer
Write the flatbuffer into a
Buffer.