pub trait ScalarOps:
Sealed
+ Sized
+ Into<Scalar> {
// Required methods
fn is_valid(&self) -> bool;
fn mask_validity(&mut self, mask: bool);
fn repeat(&self, n: usize) -> VectorMut;
// Provided method
fn is_null(&self) -> bool { ... }
}Expand description
Trait for scalar operations.
Required Methods§
Sourcefn mask_validity(&mut self, mask: bool)
fn mask_validity(&mut self, mask: bool)
Intersect the validity of this scalar with the provided mask value.
If the mask is true, the scalar’s validity remains unchanged. If the mask is false, the resulting scalar is null.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.