Value

Enum Value 

pub enum Value {
Show 23 variants Bool(bool), I8(i8), I16(i16), I32(i32), I64(i64), U8(u8), U16(u16), U32(u32), U64(u64), SparseRecord(SparseRecord), Null, Record(ValueRecord), List(Vec<Value>), String(String), Bytes(Vec<u8>), Uuid(Uuid), Decimal(Decimal), BigDecimal(BigDecimal), Timestamp(Timestamp), Zoned(Zoned), Date(Date), Time(Time), DateTime(DateTime),
}

Variants§

§

Bool(bool)

Boolean value

§

I8(i8)

Signed 8-bit integer

§

I16(i16)

Signed 16-bit integer

§

I32(i32)

Signed 32-bit integer

§

I64(i64)

Signed 64-bit integer

§

U8(u8)

Unsigned 8-bit integer

§

U16(u16)

Unsigned 16-bit integer

§

U32(u32)

Unsigned 32-bit integer

§

U64(u64)

Unsigned 64-bit integer

§

SparseRecord(SparseRecord)

A typed record

§

Null

Null value

§

Record(ValueRecord)

Record value, either borrowed or owned

§

List(Vec<Value>)

A list of values of the same type

§

String(String)

String value, either borrowed or owned

§

Bytes(Vec<u8>)

An array of bytes that is more efficient than List(u8)

§

Uuid(Uuid)

128-bit universally unique identifier (UUID)

§

Decimal(Decimal)

A fixed-precision decimal number. See [rust_decimal::Decimal].

§

BigDecimal(BigDecimal)

An arbitrary-precision decimal number. See [bigdecimal::BigDecimal].

§

Timestamp(Timestamp)

An instant in time represented as the number of nanoseconds since the Unix epoch. See [jiff::Timestamp].

§

Zoned(Zoned)

A time zone aware instant in time. See [jiff::Zoned]

§

Date(Date)

A representation of a civil date in the Gregorian calendar. See [jiff::civil::Date].

§

Time(Time)

A representation of civil “wall clock” time. See [jiff::civil::Time].

§

DateTime(DateTime)

A representation of a civil datetime in the Gregorian calendar. See [jiff::civil::DateTime].

Implementations§

§

impl Value

pub fn to_i8(&self) -> Option<i8>

pub fn to_i8_unwrap(&self) -> i8

pub fn to_i16(&self) -> Option<i16>

pub fn to_i16_unwrap(&self) -> i16

pub fn to_i32(&self) -> Option<i32>

pub fn to_i32_unwrap(&self) -> i32

pub fn to_i64(&self) -> Option<i64>

pub fn to_i64_unwrap(&self) -> i64

pub fn to_u8(&self) -> Option<u8>

pub fn to_u8_unwrap(&self) -> u8

pub fn to_u16(&self) -> Option<u16>

pub fn to_u16_unwrap(&self) -> u16

pub fn to_u32(&self) -> Option<u32>

pub fn to_u32_unwrap(&self) -> u32

pub fn to_u64(&self) -> Option<u64>

pub fn to_u64_unwrap(&self) -> u64

§

impl Value

§

impl Value

pub const fn null() -> Value

Returns a ValueCow representing null

pub const fn is_null(&self) -> bool

pub const fn is_record(&self) -> bool

pub fn record_from_vec(fields: Vec<Value>) -> Value

pub const fn from_bool(src: bool) -> Value

Create a ValueCow representing the given boolean value

pub fn as_str(&self) -> Option<&str>

pub fn expect_string(&self) -> &str

pub fn as_record(&self) -> Option<&ValueRecord>

pub fn expect_record(&self) -> &ValueRecord

pub fn expect_record_mut(&mut self) -> &mut ValueRecord

pub fn into_record(self) -> ValueRecord

pub fn is_a(&self, ty: &Type) -> bool

pub fn infer_ty(&self) -> Type

Infer the type of a value

pub fn entry(&self, path: impl EntryPath) -> Entry<'_>

pub fn take(&mut self) -> Value

§

impl Value

pub fn list_from_vec(items: Vec<Value>) -> Value

pub fn is_list(&self) -> bool

pub fn unwrap_list(self) -> Vec<Value>

Trait Implementations§

§

impl AsRef<Value> for Value

§

fn as_ref(&self) -> &Value

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

impl Clone for Value

§

fn clone(&self) -> Value

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
§

impl Debug for Value

§

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

Formats the value using the given formatter. Read more
§

impl Default for Value

§

fn default() -> Value

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

impl From<&String> for Value

§

fn from(src: &String) -> Value

Converts to this type from the input type.
§

impl<'a> From<&'a Value> for Entry<'a>

§

fn from(value: &'a Value) -> Entry<'a>

Converts to this type from the input type.
§

impl From<&i16> for Value

§

fn from(value: &i16) -> Value

Converts to this type from the input type.
§

impl From<&i32> for Value

§

fn from(value: &i32) -> Value

Converts to this type from the input type.
§

impl From<&i64> for Value

§

fn from(value: &i64) -> Value

Converts to this type from the input type.
§

impl From<&i8> for Value

§

fn from(value: &i8) -> Value

Converts to this type from the input type.
§

impl From<&isize> for Value

§

fn from(value: &isize) -> Value

Converts to this type from the input type.
§

impl<'a> From<&'a mut Value> for EntryMut<'a>

§

fn from(value: &'a mut Value) -> EntryMut<'a>

Converts to this type from the input type.
§

impl From<&str> for Value

§

fn from(src: &str) -> Value

Converts to this type from the input type.
§

impl From<&u16> for Value

§

fn from(value: &u16) -> Value

Converts to this type from the input type.
§

impl From<&u32> for Value

§

fn from(value: &u32) -> Value

Converts to this type from the input type.
§

impl From<&u64> for Value

§

fn from(value: &u64) -> Value

Converts to this type from the input type.
§

impl From<&u8> for Value

§

fn from(value: &u8) -> Value

Converts to this type from the input type.
§

impl From<&usize> for Value

§

fn from(value: &usize) -> Value

Converts to this type from the input type.
§

impl From<BigDecimal> for Value

Available on crate feature bigdecimal only.
§

fn from(value: BigDecimal) -> Value

Converts to this type from the input type.
§

impl From<Date> for Value

§

fn from(value: Date) -> Value

Converts to this type from the input type.
§

impl From<DateTime> for Value

§

fn from(value: DateTime) -> Value

Converts to this type from the input type.
§

impl From<Decimal> for Value

Available on crate feature rust_decimal only.
§

fn from(value: Decimal) -> Value

Converts to this type from the input type.
§

impl<T> From<Option<T>> for Value
where Value: From<T>,

§

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

Converts to this type from the input type.
§

impl From<SparseRecord> for Value

§

fn from(value: SparseRecord) -> Value

Converts to this type from the input type.
§

impl From<String> for Value

§

fn from(src: String) -> Value

Converts to this type from the input type.
§

impl From<Time> for Value

§

fn from(value: Time) -> Value

Converts to this type from the input type.
§

impl From<Timestamp> for Value

§

fn from(value: Timestamp) -> Value

Converts to this type from the input type.
§

impl From<Uuid> for Value

§

fn from(value: Uuid) -> Value

Converts to this type from the input type.
§

impl From<Value> for Expr

§

fn from(value: Value) -> Expr

Converts to this type from the input type.
§

impl From<Value> for ValueStream

§

fn from(src: Value) -> ValueStream

Converts to this type from the input type.
§

impl From<ValueRecord> for Value

§

fn from(value: ValueRecord) -> Value

Converts to this type from the input type.
§

impl From<Vec<Value>> for Value

§

fn from(value: Vec<Value>) -> Value

Converts to this type from the input type.
§

impl From<Vec<u8>> for Value

§

fn from(value: Vec<u8>) -> Value

Converts to this type from the input type.
§

impl From<Zoned> for Value

§

fn from(value: Zoned) -> Value

Converts to this type from the input type.
§

impl From<bool> for Value

§

fn from(src: bool) -> Value

Converts to this type from the input type.
§

impl From<i16> for Value

§

fn from(value: i16) -> Value

Converts to this type from the input type.
§

impl From<i32> for Value

§

fn from(value: i32) -> Value

Converts to this type from the input type.
§

impl From<i64> for Value

§

fn from(value: i64) -> Value

Converts to this type from the input type.
§

impl From<i8> for Value

§

fn from(value: i8) -> Value

Converts to this type from the input type.
§

impl From<isize> for Value

§

fn from(value: isize) -> Value

Converts to this type from the input type.
§

impl From<u16> for Value

§

fn from(value: u16) -> Value

Converts to this type from the input type.
§

impl From<u32> for Value

§

fn from(value: u32) -> Value

Converts to this type from the input type.
§

impl From<u64> for Value

§

fn from(value: u64) -> Value

Converts to this type from the input type.
§

impl From<u8> for Value

§

fn from(value: u8) -> Value

Converts to this type from the input type.
§

impl From<usize> for Value

§

fn from(value: usize) -> Value

Converts to this type from the input type.
§

impl Hash for Value

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Like<&[u8]> for Value

§

fn like(&self, pattern: &&[u8]) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<&String> for Value

§

fn like(&self, pattern: &&String) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<&str> for Value

§

fn like(&self, pattern: &&str) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1> Like<(T1,)> for Value
where Value: Like<T1>,

§

fn like(&self, pattern: &(T1,)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2> Like<(T1, T2)> for Value
where Value: Like<T1> + Like<T2>,

§

fn like(&self, pattern: &(T1, T2)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2, T3> Like<(T1, T2, T3)> for Value
where Value: Like<T1> + Like<T2> + Like<T3>,

§

fn like(&self, pattern: &(T1, T2, T3)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2, T3, T4> Like<(T1, T2, T3, T4)> for Value
where Value: Like<T1> + Like<T2> + Like<T3> + Like<T4>,

§

fn like(&self, pattern: &(T1, T2, T3, T4)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2, T3, T4, T5> Like<(T1, T2, T3, T4, T5)> for Value
where Value: Like<T1> + Like<T2> + Like<T3> + Like<T4> + Like<T5>,

§

fn like(&self, pattern: &(T1, T2, T3, T4, T5)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2, T3, T4, T5, T6> Like<(T1, T2, T3, T4, T5, T6)> for Value
where Value: Like<T1> + Like<T2> + Like<T3> + Like<T4> + Like<T5> + Like<T6>,

§

fn like(&self, pattern: &(T1, T2, T3, T4, T5, T6)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2, T3, T4, T5, T6, T7> Like<(T1, T2, T3, T4, T5, T6, T7)> for Value
where Value: Like<T1> + Like<T2> + Like<T3> + Like<T4> + Like<T5> + Like<T6> + Like<T7>,

§

fn like(&self, pattern: &(T1, T2, T3, T4, T5, T6, T7)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2, T3, T4, T5, T6, T7, T8> Like<(T1, T2, T3, T4, T5, T6, T7, T8)> for Value
where Value: Like<T1> + Like<T2> + Like<T3> + Like<T4> + Like<T5> + Like<T6> + Like<T7> + Like<T8>,

§

fn like(&self, pattern: &(T1, T2, T3, T4, T5, T6, T7, T8)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> Like<(T1, T2, T3, T4, T5, T6, T7, T8, T9)> for Value
where Value: Like<T1> + Like<T2> + Like<T3> + Like<T4> + Like<T5> + Like<T6> + Like<T7> + Like<T8> + Like<T9>,

§

fn like(&self, pattern: &(T1, T2, T3, T4, T5, T6, T7, T8, T9)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Like<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for Value
where Value: Like<T1> + Like<T2> + Like<T3> + Like<T4> + Like<T5> + Like<T6> + Like<T7> + Like<T8> + Like<T9> + Like<T10>,

§

fn like(&self, pattern: &(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Like<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for Value
where Value: Like<T1> + Like<T2> + Like<T3> + Like<T4> + Like<T5> + Like<T6> + Like<T7> + Like<T8> + Like<T9> + Like<T10> + Like<T11>,

§

fn like(&self, pattern: &(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)) -> bool

Returns true if self matches the pattern other. Read more
§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Like<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for Value
where Value: Like<T1> + Like<T2> + Like<T3> + Like<T4> + Like<T5> + Like<T6> + Like<T7> + Like<T8> + Like<T9> + Like<T10> + Like<T11> + Like<T12>,

§

fn like( &self, pattern: &(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), ) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<String> for Value

Convenience implementation for matching Value against String

§

fn like(&self, pattern: &String) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<Uuid> for Value

§

fn like(&self, other: &Uuid) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<Value> for Expr

§

fn like(&self, other: &Value) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<i16> for Value

Available on crate feature assert-struct only.
§

fn like(&self, pattern: &i16) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<i32> for Value

Available on crate feature assert-struct only.
§

fn like(&self, pattern: &i32) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<i64> for Value

Available on crate feature assert-struct only.
§

fn like(&self, pattern: &i64) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<i8> for Value

Available on crate feature assert-struct only.
§

fn like(&self, pattern: &i8) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<isize> for Value

Available on crate feature assert-struct only.
§

fn like(&self, pattern: &isize) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<u16> for Value

Available on crate feature assert-struct only.
§

fn like(&self, pattern: &u16) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<u32> for Value

Available on crate feature assert-struct only.
§

fn like(&self, pattern: &u32) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<u64> for Value

Available on crate feature assert-struct only.
§

fn like(&self, pattern: &u64) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<u8> for Value

Available on crate feature assert-struct only.
§

fn like(&self, pattern: &u8) -> bool

Returns true if self matches the pattern other. Read more
§

impl Like<usize> for Value

Available on crate feature assert-struct only.
§

fn like(&self, pattern: &usize) -> bool

Returns true if self matches the pattern other. Read more
§

impl PartialEq<&str> for Value

PartialEq<&str> for Value

§

fn eq(&self, other: &&str) -> 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.
§

impl<T, const N: usize> PartialEq<[T; N]> for Value
where T: PartialEq<Value>,

§

fn eq(&self, other: &[T; N]) -> 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.
§

impl<T0> PartialEq<(T0,)> for Value
where Value: PartialEq<T0>,

§

fn eq(&self, other: &(T0,)) -> 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.
§

impl<T0, T1> PartialEq<(T0, T1)> for Value
where Value: PartialEq<T0> + PartialEq<T1>,

§

fn eq(&self, other: &(T0, T1)) -> 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.
§

impl<T0, T1, T2> PartialEq<(T0, T1, T2)> for Value
where Value: PartialEq<T0> + PartialEq<T1> + PartialEq<T2>,

§

fn eq(&self, other: &(T0, T1, T2)) -> 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.
§

impl<T0, T1, T2, T3> PartialEq<(T0, T1, T2, T3)> for Value
where Value: PartialEq<T0> + PartialEq<T1> + PartialEq<T2> + PartialEq<T3>,

§

fn eq(&self, other: &(T0, T1, T2, T3)) -> 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.
§

impl<T0, T1, T2, T3, T4> PartialEq<(T0, T1, T2, T3, T4)> for Value
where Value: PartialEq<T0> + PartialEq<T1> + PartialEq<T2> + PartialEq<T3> + PartialEq<T4>,

§

fn eq(&self, other: &(T0, T1, T2, T3, T4)) -> 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.
§

impl<T0, T1, T2, T3, T4, T5> PartialEq<(T0, T1, T2, T3, T4, T5)> for Value
where Value: PartialEq<T0> + PartialEq<T1> + PartialEq<T2> + PartialEq<T3> + PartialEq<T4> + PartialEq<T5>,

§

fn eq(&self, other: &(T0, T1, T2, T3, T4, T5)) -> 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.
§

impl<T0, T1, T2, T3, T4, T5, T6> PartialEq<(T0, T1, T2, T3, T4, T5, T6)> for Value
where Value: PartialEq<T0> + PartialEq<T1> + PartialEq<T2> + PartialEq<T3> + PartialEq<T4> + PartialEq<T5> + PartialEq<T6>,

§

fn eq(&self, other: &(T0, T1, T2, T3, T4, T5, T6)) -> 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.
§

impl<T0, T1, T2, T3, T4, T5, T6, T7> PartialEq<(T0, T1, T2, T3, T4, T5, T6, T7)> for Value
where Value: PartialEq<T0> + PartialEq<T1> + PartialEq<T2> + PartialEq<T3> + PartialEq<T4> + PartialEq<T5> + PartialEq<T6> + PartialEq<T7>,

§

fn eq(&self, other: &(T0, T1, T2, T3, T4, T5, T6, T7)) -> 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.
§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> PartialEq<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for Value
where Value: PartialEq<T0> + PartialEq<T1> + PartialEq<T2> + PartialEq<T3> + PartialEq<T4> + PartialEq<T5> + PartialEq<T6> + PartialEq<T7> + PartialEq<T8>,

§

fn eq(&self, other: &(T0, T1, T2, T3, T4, T5, T6, T7, T8)) -> 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.
§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> PartialEq<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for Value
where Value: PartialEq<T0> + PartialEq<T1> + PartialEq<T2> + PartialEq<T3> + PartialEq<T4> + PartialEq<T5> + PartialEq<T6> + PartialEq<T7> + PartialEq<T8> + PartialEq<T9>,

§

fn eq(&self, other: &(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)) -> 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.
§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> PartialEq<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for Value
where Value: PartialEq<T0> + PartialEq<T1> + PartialEq<T2> + PartialEq<T3> + PartialEq<T4> + PartialEq<T5> + PartialEq<T6> + PartialEq<T7> + PartialEq<T8> + PartialEq<T9> + PartialEq<T10>,

§

fn eq(&self, other: &(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)) -> 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.
§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> PartialEq<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for Value
where Value: PartialEq<T0> + PartialEq<T1> + PartialEq<T2> + PartialEq<T3> + PartialEq<T4> + PartialEq<T5> + PartialEq<T6> + PartialEq<T7> + PartialEq<T8> + PartialEq<T9> + PartialEq<T10> + PartialEq<T11>,

§

fn eq(&self, other: &(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)) -> 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.
§

impl PartialEq<String> for Value

PartialEq for Value

§

fn eq(&self, other: &String) -> 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.
§

impl PartialEq<Value> for &str

PartialEq for &str

§

fn eq(&self, other: &Value) -> 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.
§

impl PartialEq<Value> for bool

Reverse PartialEq implementation for convenience

§

fn eq(&self, other: &Value) -> 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.
§

impl PartialEq<Value> for str

PartialEq for str

§

fn eq(&self, other: &Value) -> 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.
§

impl PartialEq<bool> for Value

PartialEq implementation for Value and primitive type

§

fn eq(&self, other: &bool) -> 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.
§

impl PartialEq<i16> for Value

§

fn eq(&self, other: &i16) -> 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.
§

impl PartialEq<i32> for Value

§

fn eq(&self, other: &i32) -> 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.
§

impl PartialEq<i64> for Value

§

fn eq(&self, other: &i64) -> 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.
§

impl PartialEq<i8> for Value

§

fn eq(&self, other: &i8) -> 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.
§

impl PartialEq<str> for Value

PartialEq for Value

§

fn eq(&self, other: &str) -> 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.
§

impl PartialEq<u16> for Value

§

fn eq(&self, other: &u16) -> 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.
§

impl PartialEq<u32> for Value

§

fn eq(&self, other: &u32) -> 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.
§

impl PartialEq<u64> for Value

§

fn eq(&self, other: &u64) -> 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.
§

impl PartialEq<u8> for Value

§

fn eq(&self, other: &u8) -> 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.
§

impl PartialEq for Value

§

fn eq(&self, other: &Value) -> 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.
§

impl PartialOrd for Value

§

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

Compares two values if they are of the same type.

Returns None for:

  • null values (SQL semantics, e.g., null comparisons are undefined)
  • Comparisons across different types
  • Types without natural ordering (records, lists, etc.)
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
§

impl Project for &Value

§

fn project(self, projection: &Projection) -> Option<Expr>

§

impl Project for Value

§

fn project(self, projection: &Projection) -> Option<Expr>

§

impl TryFrom<Value> for Vec<u8>

§

type Error = Error

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

fn try_from(value: Value) -> Result<Vec<u8>, <Vec<u8> as TryFrom<Value>>::Error>

Performs the conversion.
§

impl TryFrom<Value> for bool

§

type Error = Error

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

fn try_from(value: Value) -> Result<bool, <bool as TryFrom<Value>>::Error>

Performs the conversion.
§

impl Eq for Value

§

impl StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

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
§

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

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> 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
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