Enum tidb_query_datatype::codec::data_type::ScalarValueRef[][src]

pub enum ScalarValueRef<'a> {
    Int(Option<&'a Int>),
    Real(Option<&'a Real>),
    Decimal(Option<&'a Decimal>),
    Bytes(Option<BytesRef<'a>>),
    DateTime(Option<&'a DateTime>),
    Duration(Option<&'a Duration>),
    Json(Option<JsonRef<'a>>),
    Enum(Option<EnumRef<'a>>),
    Set(Option<SetRef<'a>>),
}

A scalar value reference container. Can be created from ScalarValue or VectorValue.

Variants

Int(Option<&'a Int>)
Real(Option<&'a Real>)
Decimal(Option<&'a Decimal>)
Bytes(Option<BytesRef<'a>>)
DateTime(Option<&'a DateTime>)
Duration(Option<&'a Duration>)
Json(Option<JsonRef<'a>>)
Enum(Option<EnumRef<'a>>)
Set(Option<SetRef<'a>>)

Implementations

impl<'a> ScalarValueRef<'a>[src]

pub fn to_owned(self) -> ScalarValue[src]

pub fn eval_type(&self) -> EvalType[src]

pub fn encode(
    &self,
    field_type: &FieldType,
    ctx: &mut EvalContext,
    output: &mut Vec<u8>
) -> Result<()>
[src]

Encodes into binary format.

pub fn encode_sort_key(
    &self,
    field_type: &FieldType,
    ctx: &mut EvalContext,
    output: &mut Vec<u8>
) -> Result<()>
[src]

pub fn cmp_sort_key(
    &self,
    other: &ScalarValueRef<'_>,
    field_type: &FieldType
) -> Result<Ordering>
[src]

impl<'a> ScalarValueRef<'a>[src]

pub fn as_int(&'a self) -> Option<&'a Int>[src]

impl<'a> ScalarValueRef<'a>[src]

pub fn as_real(&'a self) -> Option<&'a Real>[src]

impl<'a> ScalarValueRef<'a>[src]

pub fn as_decimal(&'a self) -> Option<&'a Decimal>[src]

impl<'a> ScalarValueRef<'a>[src]

pub fn as_date_time(&'a self) -> Option<&'a DateTime>[src]

impl<'a> ScalarValueRef<'a>[src]

pub fn as_duration(&'a self) -> Option<&'a Duration>[src]

impl<'a> ScalarValueRef<'a>[src]

pub fn as_json(&'a self) -> Option<JsonRef<'a>>[src]

impl<'a> ScalarValueRef<'a>[src]

pub fn as_bytes(&'a self) -> Option<BytesRef<'a>>[src]

Trait Implementations

impl<'a> Clone for ScalarValueRef<'a>[src]

impl<'a> Copy for ScalarValueRef<'a>[src]

impl<'a> Debug for ScalarValueRef<'a>[src]

impl<'a> Eq for ScalarValueRef<'a>[src]

impl<'a> Ord for ScalarValueRef<'a>[src]

impl<'a> PartialEq<ScalarValue> for ScalarValueRef<'a>[src]

impl<'a> PartialEq<ScalarValueRef<'a>> for ScalarValueRef<'a>[src]

impl<'a> PartialEq<ScalarValueRef<'a>> for ScalarValue[src]

impl<'a> PartialOrd<ScalarValueRef<'a>> for ScalarValueRef<'a>[src]

impl<'a> StructuralEq for ScalarValueRef<'a>[src]

impl<'a> StructuralPartialEq for ScalarValueRef<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ScalarValueRef<'a>

impl<'a> Send for ScalarValueRef<'a>

impl<'a> Sync for ScalarValueRef<'a>

impl<'a> Unpin for ScalarValueRef<'a>

impl<'a> UnwindSafe for ScalarValueRef<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]