Struct vortex_scalar::Scalar

source ·
pub struct Scalar { /* private fields */ }
Expand description

A single logical item, composed of both a ScalarValue and a logical [DType].

A ScalarValue is opaque, and should be accessed via one of the type-specific scalar wrappers for example BoolScalar, PrimitiveScalar, etc.

Note: PartialEq and PartialOrd are implemented only for an exact match of the scalar’s dtype, including nullability.

Implementations§

source§

impl Scalar

source

pub fn binary(buffer: Buffer, nullability: Nullability) -> Self

source§

impl Scalar

source

pub fn bool(value: bool, nullability: Nullability) -> Self

source§

impl Scalar

source

pub fn extension(ext_dtype: Arc<ExtDType>, value: Scalar) -> Self

source§

impl Scalar

source

pub fn list( element_dtype: Arc<DType>, children: Vec<Scalar>, nullability: Nullability, ) -> Self

source

pub fn list_empty(element_dtype: Arc<DType>, nullability: Nullability) -> Self

source§

impl Scalar

source

pub fn primitive<T: NativePType + Into<PValue>>( value: T, nullability: Nullability, ) -> Self

source

pub fn reinterpret_cast(&self, ptype: PType) -> Self

source

pub fn zero<T: NativePType + Into<PValue>>(nullability: Nullability) -> Self

source§

impl Scalar

source

pub fn struct_(dtype: DType, children: Vec<Scalar>) -> Self

source§

impl Scalar

source

pub fn utf8<B>(str: B, nullability: Nullability) -> Self
where B: Into<BufferString>,

source

pub fn try_utf8<B>( str: B, nullability: Nullability, ) -> Result<Self, <B as TryInto<BufferString>>::Error>
where B: TryInto<BufferString>,

source§

impl Scalar

source

pub fn new(dtype: DType, value: ScalarValue) -> Self

source

pub fn dtype(&self) -> &DType

source

pub fn into_parts(self) -> (DType, ScalarValue)

source

pub fn into_value(self) -> ScalarValue

source

pub fn is_valid(&self) -> bool

source

pub fn is_null(&self) -> bool

source

pub fn null(dtype: DType) -> Self

source

pub fn null_typed<T: ScalarType>() -> Self

source

pub fn cast(&self, dtype: &DType) -> VortexResult<Self>

source

pub fn into_nullable(self) -> Self

source§

impl Scalar

source

pub fn as_bool(&self) -> BoolScalar<'_>

source

pub fn as_bool_opt(&self) -> Option<BoolScalar<'_>>

source

pub fn as_primitive(&self) -> PrimitiveScalar<'_>

source

pub fn as_primitive_opt(&self) -> Option<PrimitiveScalar<'_>>

source

pub fn as_utf8(&self) -> Utf8Scalar<'_>

source

pub fn as_utf8_opt(&self) -> Option<Utf8Scalar<'_>>

source

pub fn as_binary(&self) -> BinaryScalar<'_>

source

pub fn as_binary_opt(&self) -> Option<BinaryScalar<'_>>

source

pub fn as_struct(&self) -> StructScalar<'_>

source

pub fn as_struct_opt(&self) -> Option<StructScalar<'_>>

source

pub fn as_list(&self) -> ListScalar<'_>

source

pub fn as_list_opt(&self) -> Option<ListScalar<'_>>

source

pub fn as_extension(&self) -> ExtScalar<'_>

source

pub fn as_extension_opt(&self) -> Option<ExtScalar<'_>>

Trait Implementations§

source§

impl AsRef<Scalar> for Scalar

source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Scalar

source§

fn clone(&self) -> Scalar

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Scalar

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Scalar

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Scalar

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&[u8]> for Scalar

source§

fn from(value: &[u8]) -> Self

Converts to this type from the input type.
source§

impl From<&Scalar> for Scalar

source§

fn from(value: &Scalar) -> Self

Converts to this type from the input type.
source§

impl From<&str> for Scalar

source§

fn from(value: &str) -> Self

Converts to this type from the input type.
source§

impl From<Buffer> for Scalar

source§

fn from(value: Buffer) -> Self

Converts to this type from the input type.
source§

impl From<BufferString> for Scalar

source§

fn from(value: BufferString) -> Self

Converts to this type from the input type.
source§

impl<T> From<Option<T>> for Scalar
where T: ScalarType, Scalar: From<T>,

source§

fn from(value: Option<T>) -> Self

Converts to this type from the input type.
source§

impl From<PrimitiveScalar<'_>> for Scalar

source§

fn from(pscalar: PrimitiveScalar<'_>) -> Self

Converts to this type from the input type.
source§

impl From<ScalarValue> for Scalar

source§

fn from(value: ScalarValue) -> Scalar

Converts to this type from the input type.
source§

impl From<String> for Scalar

source§

fn from(value: String) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Buffer>> for Scalar

source§

fn from(value: Vec<Buffer>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<BufferString>> for Scalar

source§

fn from(value: Vec<BufferString>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<String>> for Scalar

source§

fn from(value: Vec<String>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f16>> for Scalar

source§

fn from(value: Vec<f16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f32>> for Scalar

source§

fn from(value: Vec<f32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f64>> for Scalar

source§

fn from(value: Vec<f64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i16>> for Scalar

source§

fn from(value: Vec<i16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i32>> for Scalar

source§

fn from(value: Vec<i32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i64>> for Scalar

source§

fn from(value: Vec<i64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i8>> for Scalar

source§

fn from(value: Vec<i8>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u16>> for Scalar

source§

fn from(value: Vec<u16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u32>> for Scalar

source§

fn from(value: Vec<u32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u64>> for Scalar

source§

fn from(value: Vec<u64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<usize>> for Scalar

source§

fn from(value: Vec<usize>) -> Self

Converts to this type from the input type.
source§

impl From<bool> for Scalar

source§

fn from(value: bool) -> Self

Converts to this type from the input type.
source§

impl From<f16> for Scalar

source§

fn from(value: f16) -> Self

Converts to this type from the input type.
source§

impl From<f32> for Scalar

source§

fn from(value: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for Scalar

source§

fn from(value: f64) -> Self

Converts to this type from the input type.
source§

impl From<i16> for Scalar

source§

fn from(value: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Scalar

source§

fn from(value: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for Scalar

source§

fn from(value: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for Scalar

source§

fn from(value: i8) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Scalar

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Scalar

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Scalar

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Scalar

source§

fn from(value: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Scalar

Read a scalar as usize. For usize only, we implicitly cast for better ergonomics.

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Scalar

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Scalar

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for Scalar

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<&Scalar> for ()

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Arc<dyn Datum>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Arc<dyn Datum>, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for BinaryScalar<'a>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for BoolScalar<'a>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for Buffer

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: &'a Scalar) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for BufferString

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: &'a Scalar) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for ExtScalar<'a>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for ListScalar<'a>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for Option<Buffer>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: &'a Scalar) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for Option<BufferString>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: &'a Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<bool>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<f16>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<f32>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<f64>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<i16>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<i32>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<i64>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<i8>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<u16>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<u32>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<u64>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Option<u8>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for PrimitiveScalar<'a>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for Scalar

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for String

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for StructScalar<'a>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Scalar> for Utf8Scalar<'a>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a, T: for<'b> TryFrom<&'b Scalar, Error = VortexError>> TryFrom<&'a Scalar> for Vec<T>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for bool

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<&Scalar> for f16

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for f32

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for f64

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for i16

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for i32

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for i64

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for i8

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for u16

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for u32

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for u64

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for u8

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Scalar> for usize

Read a scalar as usize. For usize only, we implicitly cast for better ergonomics.

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar<'_>> for Scalar

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar<'_>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for ()

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Buffer

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: Scalar) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<Scalar> for BufferString

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<Buffer>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: Scalar) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<BufferString>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<bool>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<f16>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<f32>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<f64>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<i16>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<i32>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<i64>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<i8>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<u16>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<u32>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<u64>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for Option<u8>

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for ScalarValue

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(scalar: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for bool

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<Scalar> for f16

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for f32

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for f64

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for i16

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for i32

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for i64

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for i8

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for u16

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for u32

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for u64

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Scalar> for u8

source§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(value: Scalar) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl WriteFlatBuffer for Scalar

source§

type Target<'a> = Scalar<'a>

source§

fn write_flatbuffer<'fb>( &self, fbb: &mut FlatBufferBuilder<'fb>, ) -> WIPOffset<Self::Target<'fb>>

Auto Trait Implementations§

§

impl !Freeze for Scalar

§

impl RefUnwindSafe for Scalar

§

impl Send for Scalar

§

impl Sync for Scalar

§

impl Unpin for Scalar

§

impl UnwindSafe for Scalar

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToRawKvValue for T
where T: Serialize,

§

fn raw_kv_value(&self) -> Result<JsValue, KvError>

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

§

impl<T> Ungil for T
where T: Send,