datatypes::scalars

Trait ScalarRef

Source
pub trait ScalarRef<'a>:
    Debug
    + Clone
    + Copy
    + Send
    + 'a {
    type ScalarType: Scalar<RefType<'a> = Self>;

    // Required method
    fn to_owned_scalar(&self) -> Self::ScalarType;
}

Required Associated Types§

Source

type ScalarType: Scalar<RefType<'a> = Self>

The corresponding Scalar type.

Required Methods§

Source

fn to_owned_scalar(&self) -> Self::ScalarType

Convert the reference into an owned value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ScalarRef<'_> for bool

Source§

impl ScalarRef<'_> for Date

Source§

impl ScalarRef<'_> for DateTime

Source§

type ScalarType = DateTime

Source§

fn to_owned_scalar(&self) -> Self::ScalarType

Source§

impl ScalarRef<'_> for Decimal128

Source§

type ScalarType = Decimal128

Source§

fn to_owned_scalar(&self) -> Self::ScalarType

Source§

impl<'a> ScalarRef<'a> for &'a str

Source§

impl<'a> ScalarRef<'a> for &'a [u8]

Source§

impl<'a> ScalarRef<'a> for f32

Implement ScalarRef for primitive types. Note that primitive types are both Scalar and ScalarRef.

Source§

impl<'a> ScalarRef<'a> for f64

Implement ScalarRef for primitive types. Note that primitive types are both Scalar and ScalarRef.

Source§

impl<'a> ScalarRef<'a> for i8

Implement ScalarRef for primitive types. Note that primitive types are both Scalar and ScalarRef.

Source§

impl<'a> ScalarRef<'a> for i16

Implement ScalarRef for primitive types. Note that primitive types are both Scalar and ScalarRef.

Source§

impl<'a> ScalarRef<'a> for i32

Implement ScalarRef for primitive types. Note that primitive types are both Scalar and ScalarRef.

Source§

impl<'a> ScalarRef<'a> for i64

Implement ScalarRef for primitive types. Note that primitive types are both Scalar and ScalarRef.

Source§

impl<'a> ScalarRef<'a> for u8

Implement ScalarRef for primitive types. Note that primitive types are both Scalar and ScalarRef.

Source§

impl<'a> ScalarRef<'a> for u16

Implement ScalarRef for primitive types. Note that primitive types are both Scalar and ScalarRef.

Source§

impl<'a> ScalarRef<'a> for u32

Implement ScalarRef for primitive types. Note that primitive types are both Scalar and ScalarRef.

Source§

impl<'a> ScalarRef<'a> for u64

Implement ScalarRef for primitive types. Note that primitive types are both Scalar and ScalarRef.

Source§

impl<'a> ScalarRef<'a> for IntervalDayTime

Source§

type ScalarType = IntervalDayTime

Source§

fn to_owned_scalar(&self) -> Self::ScalarType

Source§

impl<'a> ScalarRef<'a> for IntervalMonthDayNano

Source§

type ScalarType = IntervalMonthDayNano

Source§

fn to_owned_scalar(&self) -> Self::ScalarType

Source§

impl<'a> ScalarRef<'a> for IntervalYearMonth

Source§

type ScalarType = IntervalYearMonth

Source§

fn to_owned_scalar(&self) -> Self::ScalarType

Implementors§