pub struct BondChunkProvider { /* private fields */ }Expand description
Zero-copy provider for regularly paged chemical bond topology.
Implementations§
Source§impl BondChunkProvider
impl BondChunkProvider
Sourcepub fn new(
dataset: DatasetId,
first_chunk: ChunkId,
atom_dataset: DatasetId,
atom_logical_start: LogicalRow,
structure: Structure,
) -> Result<Self, ProviderError>
pub fn new( dataset: DatasetId, first_chunk: ChunkId, atom_dataset: DatasetId, atom_logical_start: LogicalRow, structure: Structure, ) -> Result<Self, ProviderError>
Creates a provider using the default bounded bond payload size.
§Errors
Rejects unavailable topology and identity or chunk-range overflow.
Sourcepub fn with_rows_per_chunk(
dataset: DatasetId,
first_chunk: ChunkId,
atom_dataset: DatasetId,
atom_logical_start: LogicalRow,
structure: Structure,
rows_per_chunk: u32,
) -> Result<Self, ProviderError>
pub fn with_rows_per_chunk( dataset: DatasetId, first_chunk: ChunkId, atom_dataset: DatasetId, atom_logical_start: LogicalRow, structure: Structure, rows_per_chunk: u32, ) -> Result<Self, ProviderError>
Creates a provider with an explicit bounded payload row count.
§Errors
Rejects zero chunk rows, unavailable topology, or identity overflow.
Sourcepub const fn dataset(&self) -> DatasetDescriptor
pub const fn dataset(&self) -> DatasetDescriptor
Compact dataset metadata; no per-chunk index is retained.
Trait Implementations§
Source§impl Clone for BondChunkProvider
impl Clone for BondChunkProvider
Auto Trait Implementations§
impl Freeze for BondChunkProvider
impl RefUnwindSafe for BondChunkProvider
impl Send for BondChunkProvider
impl Sync for BondChunkProvider
impl Unpin for BondChunkProvider
impl UnsafeUnpin for BondChunkProvider
impl UnwindSafe for BondChunkProvider
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