Struct vortex_scalar::ScalarValue
source · pub struct ScalarValue(/* private fields */);
Expand description
Represents the internal data of a scalar value. Must be interpreted by wrapping up with a DType to make a Scalar.
Note that these values can be deserialized from JSON or other formats. So a PValue may not have the correct width for what the DType expects. Primitive values should therefore be read using crate::PrimitiveScalar which will handle the conversion.
Implementations§
source§impl ScalarValue
impl ScalarValue
pub fn is_instance_of(&self, dtype: &DType) -> bool
Trait Implementations§
source§impl Clone for ScalarValue
impl Clone for ScalarValue
source§fn clone(&self) -> ScalarValue
fn clone(&self) -> ScalarValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ScalarValue
impl Debug for ScalarValue
source§impl<'de> Deserialize<'de> for ScalarValue
impl<'de> Deserialize<'de> for ScalarValue
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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 ScalarValue
impl Display for ScalarValue
source§impl From<&ScalarValue> for ScalarValue
impl From<&ScalarValue> for ScalarValue
source§fn from(value: &ScalarValue) -> Self
fn from(value: &ScalarValue) -> Self
Converts to this type from the input type.
source§impl From<bool> for ScalarValue
impl From<bool> for ScalarValue
source§impl PartialEq for ScalarValue
impl PartialEq for ScalarValue
source§impl PartialOrd for ScalarValue
impl PartialOrd for ScalarValue
source§impl Serialize for ScalarValue
impl Serialize for ScalarValue
source§impl TryFrom<ScalarValue<'_>> for ScalarValue
impl TryFrom<ScalarValue<'_>> for ScalarValue
source§impl WriteFlatBuffer for ScalarValue
impl WriteFlatBuffer for ScalarValue
impl StructuralPartialEq for ScalarValue
Auto Trait Implementations§
impl !Freeze for ScalarValue
impl RefUnwindSafe for ScalarValue
impl Send for ScalarValue
impl Sync for ScalarValue
impl Unpin for ScalarValue
impl UnwindSafe for ScalarValue
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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