pub struct PropertyChunkProvider { /* private fields */ }Expand description
Zero-copy provider for one typed atom property.
Implementations§
Source§impl PropertyChunkProvider
impl PropertyChunkProvider
Sourcepub fn plddt(
dataset: DatasetId,
first_chunk: ChunkId,
structure: Structure,
) -> Result<Self, ProviderError>
pub fn plddt( dataset: DatasetId, first_chunk: ChunkId, structure: Structure, ) -> Result<Self, ProviderError>
Creates a provider for the canonical atom-aligned pLDDT confidence column.
§Errors
Rejects structures without lowered pLDDT, row misalignment, or identity overflow.
Sourcepub fn new(
dataset: DatasetId,
first_chunk: ChunkId,
structure: Structure,
name: impl Into<Arc<str>>,
) -> Result<Self, ProviderError>
pub fn new( dataset: DatasetId, first_chunk: ChunkId, structure: Structure, name: impl Into<Arc<str>>, ) -> Result<Self, ProviderError>
Creates a property provider over the structure’s existing chunk layout.
§Errors
Rejects absent properties, row misalignment, or identity overflow.
Sourcepub const fn dataset(&self) -> DatasetDescriptor
pub const fn dataset(&self) -> DatasetDescriptor
Compact dataset metadata.
Sourcepub fn chunk(&self, chunk: ChunkId) -> Result<PropertyChunk, ProviderError>
pub fn chunk(&self, chunk: ChunkId) -> Result<PropertyChunk, ProviderError>
Produces one property payload without copying its values.
§Errors
Rejects chunk identities outside this provider.
Trait Implementations§
Source§impl Clone for PropertyChunkProvider
impl Clone for PropertyChunkProvider
Auto Trait Implementations§
impl Freeze for PropertyChunkProvider
impl RefUnwindSafe for PropertyChunkProvider
impl Send for PropertyChunkProvider
impl Sync for PropertyChunkProvider
impl Unpin for PropertyChunkProvider
impl UnsafeUnpin for PropertyChunkProvider
impl UnwindSafe for PropertyChunkProvider
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