pub struct FrameChunkProvider { /* private fields */ }Expand description
Zero-copy provider for one coordinate frame over an existing chunk layout.
Implementations§
Source§impl FrameChunkProvider
impl FrameChunkProvider
Sourcepub fn new(
dataset: DatasetId,
first_chunk: ChunkId,
structure: Structure,
model: ModelIndex,
) -> Result<Self, ProviderError>
pub fn new( dataset: DatasetId, first_chunk: ChunkId, structure: Structure, model: ModelIndex, ) -> Result<Self, ProviderError>
Creates a frame provider for one directly stored model.
§Errors
Rejects ragged or absent model storage and identity overflow.
Sourcepub const fn dataset(&self) -> DatasetDescriptor
pub const fn dataset(&self) -> DatasetDescriptor
Compact dataset metadata.
Sourcepub fn chunk(&self, chunk: ChunkId) -> Result<FrameChunk, ProviderError>
pub fn chunk(&self, chunk: ChunkId) -> Result<FrameChunk, ProviderError>
Produces one coordinate payload sharing the frame’s aligned storage.
§Errors
Rejects chunk identities outside this provider or inconsistent models.
Trait Implementations§
Source§impl Clone for FrameChunkProvider
impl Clone for FrameChunkProvider
Auto Trait Implementations§
impl Freeze for FrameChunkProvider
impl RefUnwindSafe for FrameChunkProvider
impl Send for FrameChunkProvider
impl Sync for FrameChunkProvider
impl Unpin for FrameChunkProvider
impl UnsafeUnpin for FrameChunkProvider
impl UnwindSafe for FrameChunkProvider
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 more