pub struct StructScalar<'a> { /* private fields */ }Implementations§
source§impl<'a> StructScalar<'a>
impl<'a> StructScalar<'a>
pub fn dtype(&self) -> &'a DType
pub fn is_null(&self) -> bool
pub fn field_by_idx(&self, idx: usize) -> Option<Scalar>
pub fn field(&self, name: &str) -> Option<Scalar>
pub fn fields(&self) -> Option<&[ScalarValue]>
pub fn cast(&self, dtype: &DType) -> VortexResult<Scalar>
pub fn project(&self, projection: &[Field]) -> VortexResult<Scalar>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StructScalar<'a>
impl<'a> RefUnwindSafe for StructScalar<'a>
impl<'a> Send for StructScalar<'a>
impl<'a> Sync for StructScalar<'a>
impl<'a> Unpin for StructScalar<'a>
impl<'a> UnwindSafe for StructScalar<'a>
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> 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