pub enum Validity {
NonNullable,
AllValid,
AllInvalid,
Array(Array),
}
Variants§
Implementations§
source§impl Validity
impl Validity
pub const DTYPE: DType = _
pub fn into_array(self) -> Option<Array>
pub fn to_metadata(&self, length: usize) -> VortexResult<ValidityMetadata>
pub fn array(&self) -> Option<&Array>
pub fn nullability(&self) -> Nullability
pub fn is_valid(&self, index: usize) -> bool
pub fn slice(&self, start: usize, stop: usize) -> VortexResult<Self>
pub fn take(&self, indices: &Array) -> VortexResult<Self>
pub fn to_logical(&self, length: usize) -> LogicalValidity
Trait Implementations§
source§impl From<BooleanBuffer> for Validity
impl From<BooleanBuffer> for Validity
source§fn from(value: BooleanBuffer) -> Self
fn from(value: BooleanBuffer) -> Self
Converts to this type from the input type.
source§impl From<NullBuffer> for Validity
impl From<NullBuffer> for Validity
source§fn from(value: NullBuffer) -> Self
fn from(value: NullBuffer) -> Self
Converts to this type from the input type.
source§impl<'a, E> FromIterator<&'a Option<E>> for Validity
impl<'a, E> FromIterator<&'a Option<E>> for Validity
source§impl FromIterator<LogicalValidity> for Validity
impl FromIterator<LogicalValidity> for Validity
source§fn from_iter<T: IntoIterator<Item = LogicalValidity>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = LogicalValidity>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl !Freeze for Validity
impl !RefUnwindSafe for Validity
impl Send for Validity
impl Sync for Validity
impl Unpin for Validity
impl !UnwindSafe for Validity
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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