ConstantImpl

Enum ConstantImpl 

Source
pub enum ConstantImpl {
    Scalar(ScalarImpl),
    Vector(VectorImpl),
    Pair(PairImpl),
    Dictionary(DictionaryImpl),
    Set(SetImpl),
    Table(Table),
}

Variants§

§

Scalar(ScalarImpl)

§

Vector(VectorImpl)

§

Pair(PairImpl)

§

Dictionary(DictionaryImpl)

§

Set(SetImpl)

§

Table(Table)

Implementations§

Source§

impl ConstantImpl

Source

pub fn is_null(&self) -> bool

Source

pub fn get(&self, index: usize) -> Option<ConstantImpl>

Source§

impl ConstantImpl

Source

pub fn as_scalar(&self) -> Result<&ScalarImpl, Error>

Source

pub fn as_mut_scalar(&mut self) -> Result<&mut ScalarImpl, Error>

Source

pub fn as_vector(&self) -> Result<&VectorImpl, Error>

Source

pub fn as_mut_vector(&mut self) -> Result<&mut VectorImpl, Error>

Source

pub fn as_pair(&self) -> Result<&PairImpl, Error>

Source

pub fn as_mut_pair(&mut self) -> Result<&mut PairImpl, Error>

Source

pub fn as_set(&self) -> Result<&SetImpl, Error>

Source

pub fn as_mut_set(&mut self) -> Result<&mut SetImpl, Error>

Source

pub fn as_dictionary(&self) -> Result<&DictionaryImpl, Error>

Source

pub fn as_mut_dictionary(&mut self) -> Result<&mut DictionaryImpl, Error>

Source

pub fn as_table(&self) -> Result<&Table, Error>

Source

pub fn as_mut_table(&mut self) -> Result<&mut Table, Error>

Trait Implementations§

Source§

impl Clone for ConstantImpl

Source§

fn clone(&self) -> ConstantImpl

Returns a duplicate 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 Constant for ConstantImpl

Source§

fn data_form(&self) -> DataForm

data category identifier for serialization.
Source§

fn data_type(&self) -> DataType

data type identifier for serialization.
Source§

fn len(&self) -> usize

Returns the number of elements in Constant.
Source§

fn is_empty(&self) -> bool

Source§

impl Debug for ConstantImpl

Source§

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

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

impl Default for ConstantImpl

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for ConstantImpl

Source§

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

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

impl From<ArrayVector<f32>> for ConstantImpl

Source§

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

Converts to this type from the input type.
Source§

impl From<ArrayVector<f64>> for ConstantImpl

Source§

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

Converts to this type from the input type.
Source§

impl From<ArrayVector<i16>> for ConstantImpl

Source§

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

Converts to this type from the input type.
Source§

impl From<ArrayVector<i32>> for ConstantImpl

Source§

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

Converts to this type from the input type.
Source§

impl From<ArrayVector<i64>> for ConstantImpl

Source§

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

Converts to this type from the input type.
Source§

impl From<ArrayVector<i8>> for ConstantImpl

Source§

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

Converts to this type from the input type.
Source§

impl From<Blob> for ConstantImpl

Source§

fn from(value: Blob) -> Self

Converts to this type from the input type.
Source§

impl From<Bool> for ConstantImpl

Source§

fn from(value: Bool) -> Self

Converts to this type from the input type.
Source§

impl From<Char> for ConstantImpl

Source§

fn from(value: Char) -> Self

Converts to this type from the input type.
Source§

impl From<ConstantImpl> for Any

Source§

fn from(value: ConstantImpl) -> Self

Converts to this type from the input type.
Source§

impl From<Date> for ConstantImpl

Source§

fn from(value: Date) -> Self

Converts to this type from the input type.
Source§

impl From<DateHour> for ConstantImpl

Source§

fn from(value: DateHour) -> Self

Converts to this type from the input type.
Source§

impl From<DateTime> for ConstantImpl

Source§

fn from(value: DateTime) -> Self

Converts to this type from the input type.
Source§

impl From<Decimal128> for ConstantImpl

Source§

fn from(value: Decimal128) -> Self

Converts to this type from the input type.
Source§

impl From<Decimal32> for ConstantImpl

Source§

fn from(value: Decimal32) -> Self

Converts to this type from the input type.
Source§

impl From<Decimal64> for ConstantImpl

Source§

fn from(value: Decimal64) -> Self

Converts to this type from the input type.
Source§

impl From<DictionaryImpl> for ConstantImpl

Source§

fn from(value: DictionaryImpl) -> Self

Converts to this type from the input type.
Source§

impl From<DolphinString> for ConstantImpl

Source§

fn from(value: DolphinString) -> Self

Converts to this type from the input type.
Source§

impl From<Double> for ConstantImpl

Source§

fn from(value: Double) -> Self

Converts to this type from the input type.
Source§

impl From<Float> for ConstantImpl

Source§

fn from(value: Float) -> Self

Converts to this type from the input type.
Source§

impl From<Int> for ConstantImpl

Source§

fn from(value: Int) -> Self

Converts to this type from the input type.
Source§

impl From<Long> for ConstantImpl

Source§

fn from(value: Long) -> Self

Converts to this type from the input type.
Source§

impl From<Minute> for ConstantImpl

Source§

fn from(value: Minute) -> Self

Converts to this type from the input type.
Source§

impl From<Month> for ConstantImpl

Source§

fn from(value: Month) -> Self

Converts to this type from the input type.
Source§

impl From<NanoTime> for ConstantImpl

Source§

fn from(value: NanoTime) -> Self

Converts to this type from the input type.
Source§

impl From<NanoTimestamp> for ConstantImpl

Source§

fn from(value: NanoTimestamp) -> Self

Converts to this type from the input type.
Source§

impl From<PairImpl> for ConstantImpl

Source§

fn from(value: PairImpl) -> Self

Converts to this type from the input type.
Source§

impl From<ScalarImpl> for ConstantImpl

Source§

fn from(value: ScalarImpl) -> Self

Converts to this type from the input type.
Source§

impl From<Second> for ConstantImpl

Source§

fn from(value: Second) -> Self

Converts to this type from the input type.
Source§

impl From<SetImpl> for ConstantImpl

Source§

fn from(value: SetImpl) -> Self

Converts to this type from the input type.
Source§

impl From<Short> for ConstantImpl

Source§

fn from(value: Short) -> Self

Converts to this type from the input type.
Source§

impl From<Symbol> for ConstantImpl

Source§

fn from(value: Symbol) -> Self

Converts to this type from the input type.
Source§

impl From<Table> for ConstantImpl

Source§

fn from(value: Table) -> Self

Converts to this type from the input type.
Source§

impl From<Time> for ConstantImpl

Source§

fn from(value: Time) -> Self

Converts to this type from the input type.
Source§

impl From<Timestamp> for ConstantImpl

Source§

fn from(value: Timestamp) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Blob>> for ConstantImpl

Source§

fn from(value: Vector<Blob>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Bool>> for ConstantImpl

Source§

fn from(value: Vector<Bool>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Char>> for ConstantImpl

Source§

fn from(value: Vector<Char>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Date>> for ConstantImpl

Source§

fn from(value: Vector<Date>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<DateHour>> for ConstantImpl

Source§

fn from(value: Vector<DateHour>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<DateTime>> for ConstantImpl

Source§

fn from(value: Vector<DateTime>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Decimal128>> for ConstantImpl

Source§

fn from(value: Vector<Decimal128>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Decimal32>> for ConstantImpl

Source§

fn from(value: Vector<Decimal32>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Decimal64>> for ConstantImpl

Source§

fn from(value: Vector<Decimal64>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<DolphinString>> for ConstantImpl

Source§

fn from(value: Vector<DolphinString>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Double>> for ConstantImpl

Source§

fn from(value: Vector<Double>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Float>> for ConstantImpl

Source§

fn from(value: Vector<Float>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Int>> for ConstantImpl

Source§

fn from(value: Vector<Int>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Long>> for ConstantImpl

Source§

fn from(value: Vector<Long>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Minute>> for ConstantImpl

Source§

fn from(value: Vector<Minute>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Month>> for ConstantImpl

Source§

fn from(value: Vector<Month>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<NanoTime>> for ConstantImpl

Source§

fn from(value: Vector<NanoTime>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<NanoTimestamp>> for ConstantImpl

Source§

fn from(value: Vector<NanoTimestamp>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Second>> for ConstantImpl

Source§

fn from(value: Vector<Second>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Short>> for ConstantImpl

Source§

fn from(value: Vector<Short>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Symbol>> for ConstantImpl

Source§

fn from(value: Vector<Symbol>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Time>> for ConstantImpl

Source§

fn from(value: Vector<Time>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Timestamp>> for ConstantImpl

Source§

fn from(value: Vector<Timestamp>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector<Void>> for ConstantImpl

Source§

fn from(value: Vector<Void>) -> Self

Converts to this type from the input type.
Source§

impl From<VectorImpl> for ConstantImpl

Source§

fn from(value: VectorImpl) -> Self

Converts to this type from the input type.
Source§

impl From<Void> for ConstantImpl

Source§

fn from(value: Void) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ConstantImpl

Source§

fn eq(&self, other: &ConstantImpl) -> 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 TryFrom<ConstantImpl> for Blob

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Bool

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Char

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Date

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for DateHour

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for DateTime

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Decimal128

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Decimal32

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Decimal64

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for DictionaryImpl

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for DolphinString

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Double

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Float

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Int

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Long

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Minute

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Month

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for NanoTime

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for NanoTimestamp

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for PairImpl

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for ScalarImpl

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Second

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for SetImpl

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Short

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Symbol

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Table

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Time

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Timestamp

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for VectorImpl

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<ConstantImpl> for Void

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl Eq for ConstantImpl

Source§

impl StructuralPartialEq for ConstantImpl

Auto Trait Implementations§

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, dest: *mut u8)

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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

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

Source§

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.