Struct vortex_scalar::StructScalar
source · pub struct StructScalar<'a> { /* private fields */ }
Implementations§
source§impl<'a> StructScalar<'a>
impl<'a> StructScalar<'a>
pub fn dtype(&self) -> &'a DType
pub fn struct_dtype(&self) -> &'a StructDType
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<Vec<Scalar>>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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