pub struct PropertyChunk { /* private fields */ }Expand description
One typed property chunk retaining its immutable source snapshot.
Implementations§
Source§impl PropertyChunk
impl PropertyChunk
Adapts a property over one existing structure chunk.
§Errors
Rejects missing, misaligned, or unavailable source chunks.
Sourcepub const fn descriptor(&self) -> ChunkDescriptor
pub const fn descriptor(&self) -> ChunkDescriptor
Stable chunk metadata.
Sourcepub fn kind(&self) -> Option<PropertyKind>
pub fn kind(&self) -> Option<PropertyKind>
Physical property type.
Sourcepub fn value(&self, local: LocalRow) -> Result<PropertyValue, ProviderError>
pub fn value(&self, local: LocalRow) -> Result<PropertyValue, ProviderError>
Reads one local value without allocating or decoding unrelated rows.
§Errors
Rejects a local row outside this chunk.
Sourcepub fn integers(&self) -> Option<&[i64]>
pub fn integers(&self) -> Option<&[i64]>
Borrowed integer values when this property has integer storage.
Trait Implementations§
Source§impl Clone for PropertyChunk
impl Clone for PropertyChunk
Source§fn clone(&self) -> PropertyChunk
fn clone(&self) -> PropertyChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PropertyChunk
impl RefUnwindSafe for PropertyChunk
impl Send for PropertyChunk
impl Sync for PropertyChunk
impl Unpin for PropertyChunk
impl UnsafeUnpin for PropertyChunk
impl UnwindSafe for PropertyChunk
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