Struct vortex_file::InitialRead
source · pub struct InitialRead {
pub buf: Buffer,
pub initial_read_offset: u64,
pub fb_postscript_byte_range: Range<usize>,
}
Fields§
§buf: Buffer
The bytes from the initial read of the file, which is assumed (for now) to be sufficiently large to contain the schema and layout.
initial_read_offset: u64
The absolute byte offset representing the start of the initial read within the file.
fb_postscript_byte_range: Range<usize>
The byte range within buf
representing the Postscript flatbuffer.
Implementations§
source§impl InitialRead
impl InitialRead
pub fn fb_postscript(&self) -> Postscript<'_>
sourcepub fn fb_layout_byte_range(&self) -> Range<usize>
pub fn fb_layout_byte_range(&self) -> Range<usize>
The bytes of the Layout
flatbuffer.
sourcepub fn fb_schema_byte_range(&self) -> Range<usize>
pub fn fb_schema_byte_range(&self) -> Range<usize>
The bytes of the Schema
flatbuffer.
pub fn lazy_dtype(&self) -> LazyDType
Trait Implementations§
source§impl Clone for InitialRead
impl Clone for InitialRead
source§fn clone(&self) -> InitialRead
fn clone(&self) -> InitialRead
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 !Freeze for InitialRead
impl RefUnwindSafe for InitialRead
impl Send for InitialRead
impl Sync for InitialRead
impl Unpin for InitialRead
impl UnwindSafe for InitialRead
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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