pub enum DatumTupleRef<'a> {
Empty,
Tuple(&'a Tuple),
Dynamic(&'a dyn RefTupleView<'a, Value>),
CoercedValue(usize, &'a Value),
SingleKey(Cow<'a, str>, &'a Value),
Bindings(&'a HashMap<Cow<'a, str>, &'a Value>),
}Variants§
Empty
A Tuple with no bindings
Tuple(&'a Tuple)
Holds a reference to a Tuple
Dynamic(&'a dyn RefTupleView<'a, Value>)
Holds a reference to a RefTupleView
CoercedValue(usize, &'a Value)
Holds a reference to a value which is not a tuple, but has been coerced (e.g., for 9: {'_1': 9})
SingleKey(Cow<'a, str>, &'a Value)
A reference to a value stored under a single key
Bindings(&'a HashMap<Cow<'a, str>, &'a Value>)
A reference to a value stored under a single key
Trait Implementations§
Source§impl<'a> Debug for DatumTupleRef<'a>
impl<'a> Debug for DatumTupleRef<'a>
Source§impl<'a> IntoIterator for &'a DatumTupleRef<'a>
impl<'a> IntoIterator for &'a DatumTupleRef<'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>
Auto Trait Implementations§
impl<'a> Freeze for DatumTupleRef<'a>
impl<'a> !RefUnwindSafe for DatumTupleRef<'a>
impl<'a> !Send for DatumTupleRef<'a>
impl<'a> !Sync for DatumTupleRef<'a>
impl<'a> Unpin for DatumTupleRef<'a>
impl<'a> !UnwindSafe for DatumTupleRef<'a>
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> 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