pub enum Value {
}Variants§
Null
Missing
Boolean(bool)
Integer(i64)
Real(OrderedFloat<f64>)
Decimal(Box<Decimal>)
String(Box<String>)
Blob(Box<Vec<u8>>)
DateTime(Box<DateTime>)
List(Box<List>)
Bag(Box<Bag>)
Tuple(Box<Tuple>)
Graph(Box<Graph>)
Variant(Box<Variant>)
Implementations§
Source§impl Value
impl Value
pub fn is_tuple(&self) -> bool
pub fn is_list(&self) -> bool
pub fn is_bag(&self) -> bool
Sourcepub fn is_number(&self) -> bool
pub fn is_number(&self) -> bool
Returns true if and only if Value is an integer, real, or decimal
pub fn coerce_into_tuple(self) -> Tuple ⓘ
pub fn coerce_to_tuple(&self) -> Tuple ⓘ
pub fn as_datum_tuple_ref(&self) -> DatumTupleRef<'_>
pub fn as_tuple_ref(&self) -> Cow<'_, Tuple>
pub fn as_bindings(&self) -> BindingIter<'_> ⓘ
pub fn into_bindings(self) -> BindingIntoIter ⓘ
pub fn coerce_into_bag(self) -> Bag
pub fn as_bag_ref(&self) -> Cow<'_, Bag>
pub fn coerce_into_list(self) -> List
pub fn as_list_ref(&self) -> Cow<'_, List>
pub fn iter(&self) -> ValueIter<'_> ⓘ
pub fn sequence_iter(&self) -> Option<ValueIter<'_>>
Trait Implementations§
Source§impl AddAssign<&Value> for Value
impl AddAssign<&Value> for Value
Source§fn add_assign(&mut self, rhs: &Value)
fn add_assign(&mut self, rhs: &Value)
Performs the
+= operation. Read moreSource§impl Comparable for Value
impl Comparable for Value
Source§fn is_comparable_to(&self, rhs: &Self) -> bool
fn is_comparable_to(&self, rhs: &Self) -> bool
Returns true if and only if self is comparable to rhs
Source§impl Datum<Value> for DatumValueOwned
impl Datum<Value> for DatumValueOwned
Source§fn is_missing(&self) -> bool
fn is_missing(&self) -> bool
Returns true if and only if Value is to be interpreted as
MISSINGfn is_sequence(&self) -> bool
fn is_ordered(&self) -> bool
Source§fn is_present(&self) -> bool
fn is_present(&self) -> bool
Returns true if Value is neither null nor missing
Source§impl Datum<Value> for DatumValueRef<'_>
impl Datum<Value> for DatumValueRef<'_>
Source§fn is_missing(&self) -> bool
fn is_missing(&self) -> bool
Returns true if and only if Value is to be interpreted as
MISSINGfn is_sequence(&self) -> bool
fn is_ordered(&self) -> bool
Source§fn is_present(&self) -> bool
fn is_present(&self) -> bool
Returns true if Value is neither null nor missing
Source§impl Datum<Value> for Value
impl Datum<Value> for Value
Source§fn is_missing(&self) -> bool
fn is_missing(&self) -> bool
Returns true if and only if Value is to be interpreted as
MISSINGfn is_sequence(&self) -> bool
fn is_ordered(&self) -> bool
Source§fn is_present(&self) -> bool
fn is_present(&self) -> bool
Returns true if Value is neither null nor missing
Source§impl Datum<Value> for Variant
impl Datum<Value> for Variant
Source§fn is_missing(&self) -> bool
fn is_missing(&self) -> bool
Returns true if and only if Value is to be interpreted as
MISSINGSource§fn is_present(&self) -> bool
fn is_present(&self) -> bool
Returns true if Value is neither null nor missing
fn is_sequence(&self) -> bool
fn is_ordered(&self) -> bool
Source§impl<'a> DatumCategory<'a> for Value
impl<'a> DatumCategory<'a> for Value
fn category(&'a self) -> DatumCategoryRef<'a>
fn into_category(self) -> DatumCategoryOwned
Source§impl DatumLower<Value> for DatumValueOwned
impl DatumLower<Value> for DatumValueOwned
fn into_lower(self) -> DatumLowerResult<Value>
fn into_lower_boxed(self: Box<Self>) -> DatumLowerResult<Value>
fn lower(&self) -> DatumLowerResult<Cow<'_, Value>>
Source§impl DatumLower<Value> for Value
impl DatumLower<Value> for Value
fn into_lower(self) -> DatumLowerResult<Value>
fn into_lower_boxed(self: Box<Self>) -> DatumLowerResult<Value>
fn lower(&self) -> DatumLowerResult<Cow<'_, Value>>
Source§impl DatumLower<Value> for Variant
impl DatumLower<Value> for Variant
fn into_lower(self) -> DatumLowerResult<Value>
fn into_lower_boxed(self: Box<Self>) -> DatumLowerResult<Value>
fn lower(&self) -> DatumLowerResult<Cow<'_, Value>>
Source§impl Extend<Value> for Bag
impl Extend<Value> for Bag
Source§fn extend<Iter: IntoIterator<Item = Value>>(&mut self, iter: Iter)
fn extend<Iter: IntoIterator<Item = Value>>(&mut self, iter: Iter)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl Extend<Value> for List
impl Extend<Value> for List
Source§fn extend<Iter: IntoIterator<Item = Value>>(&mut self, iter: Iter)
fn extend<Iter: IntoIterator<Item = Value>>(&mut self, iter: Iter)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<Decimal> for Value
impl From<Decimal> for Value
Source§fn from(d: RustDecimal) -> Self
fn from(d: RustDecimal) -> Self
Converts to this type from the input type.
Source§impl From<OrderedFloat<f64>> for Value
impl From<OrderedFloat<f64>> for Value
Source§fn from(f: OrderedFloat<f64>) -> Self
fn from(f: OrderedFloat<f64>) -> Self
Converts to this type from the input type.
Source§impl IntoIterator for Value
impl IntoIterator for Value
Source§impl NullableOrd for Value
impl NullableOrd for Value
Source§impl Ord for Value
Implementation of spec’s order-by less-than assuming nulls first.
TODO: more tests for Ord on Value
impl Ord for Value
Implementation of spec’s order-by less-than assuming nulls first.
TODO: more tests for Ord on Value
Source§impl OwnedSequenceView<Value> for DatumSeqOwned
impl OwnedSequenceView<Value> for DatumSeqOwned
Source§impl OwnedTupleView<Value> for DatumTupleOwned
impl OwnedTupleView<Value> for DatumTupleOwned
fn take_val(self, k: &BindingsName<'_>) -> Option<Value>
fn take_val_boxed(self: Box<Self>, k: &BindingsName<'_>) -> Option<Value>
fn into_iter_boxed( self: Box<Self>, ) -> Box<dyn Iterator<Item = OwnedFieldView<Value>>>
Source§impl PartialOrd for Value
impl PartialOrd for Value
Source§impl PrettyDoc for Value
impl PrettyDoc for Value
fn pretty_doc<'b, D, A>(&'b self, arena: &'b D) -> DocBuilder<'b, D, A>
Source§impl<'a> RefSequenceView<'a, Value> for DatumSeqRef<'a>
impl<'a> RefSequenceView<'a, Value> for DatumSeqRef<'a>
Source§impl<'a> RefTupleView<'a, Value> for DatumTupleRef<'a>
impl<'a> RefTupleView<'a, Value> for DatumTupleRef<'a>
fn get_val(&self, k: &BindingsName<'_>) -> Option<Cow<'a, Value>>
fn tuple_fields_iter( &'a self, ) -> Box<dyn Iterator<Item = RefFieldView<'a, Value>> + 'a>
impl DatumValue<Value> for Value
impl DatumValue<Value> for Variant
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> 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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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