pub struct AnnotationColumn<T> { /* private fields */ }Expand description
One immutable typed annotation column with three-state validity.
Implementations§
Source§impl<T> AnnotationColumn<T>
impl<T> AnnotationColumn<T>
Sourcepub fn from_values(values: Vec<T>) -> Result<Self, CapacityError>
pub fn from_values(values: Vec<T>) -> Result<Self, CapacityError>
Builds an all-present column.
§Errors
Returns CapacityError when the column exceeds the supported row count.
Source§impl<T> AnnotationColumn<T>
impl<T> AnnotationColumn<T>
Sourcepub fn from_entries(
entries: impl IntoIterator<Item = (T, Presence)>,
) -> Result<Self, CapacityError>
pub fn from_entries( entries: impl IntoIterator<Item = (T, Presence)>, ) -> Result<Self, CapacityError>
Builds a column from dense values paired with their validity state.
§Errors
Returns CapacityError when the column exceeds the supported row count.
Trait Implementations§
Source§impl<T: Clone> Clone for AnnotationColumn<T>
impl<T: Clone> Clone for AnnotationColumn<T>
Auto Trait Implementations§
impl<T> Freeze for AnnotationColumn<T>
impl<T> RefUnwindSafe for AnnotationColumn<T>
impl<T> Send for AnnotationColumn<T>
impl<T> Sync for AnnotationColumn<T>
impl<T> Unpin for AnnotationColumn<T>
impl<T> UnsafeUnpin for AnnotationColumn<T>
impl<T> UnwindSafe for AnnotationColumn<T>
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