pub enum EntryRef<'a, T, B> {
Value(EntryRef<'a, T>),
List(&'a [IndexedObject<T, B>]),
Node(EntryRef<'a, T, B>),
}Expand description
Entry of an object, key and value together.
Variants§
Value(EntryRef<'a, T>)
A value object.
List(&'a [IndexedObject<T, B>])
A list object.
Node(EntryRef<'a, T, B>)
A node object.
Implementations§
Source§impl<'a, T, B> EntryRef<'a, T, B>
impl<'a, T, B> EntryRef<'a, T, B>
Sourcepub fn into_key(self) -> EntryKeyRef<'a, T, B>
pub fn into_key(self) -> EntryKeyRef<'a, T, B>
Consumes this EntryRef, returning its key.
Sourcepub fn key(&self) -> EntryKeyRef<'a, T, B>
pub fn key(&self) -> EntryKeyRef<'a, T, B>
Returns the key of this EntryRef.
Sourcepub fn into_value(self) -> EntryValueRef<'a, T, B>
pub fn into_value(self) -> EntryValueRef<'a, T, B>
Consumes this EntryRef, returning its value.
Sourcepub fn value(&self) -> EntryValueRef<'a, T, B>
pub fn value(&self) -> EntryValueRef<'a, T, B>
Returns the value of this EntryRef.
Sourcepub fn into_key_value(self) -> (EntryKeyRef<'a, T, B>, EntryValueRef<'a, T, B>)
pub fn into_key_value(self) -> (EntryKeyRef<'a, T, B>, EntryValueRef<'a, T, B>)
Consumes this EntryRef, returning its key and value.
Sourcepub fn as_key_value(&self) -> (EntryKeyRef<'a, T, B>, EntryValueRef<'a, T, B>)
pub fn as_key_value(&self) -> (EntryKeyRef<'a, T, B>, EntryValueRef<'a, T, B>)
Returns the key and value of this entry.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, B> Freeze for EntryRef<'a, T, B>
impl<'a, T, B> RefUnwindSafe for EntryRef<'a, T, B>where
EntryRef<'a, T>: RefUnwindSafe,
&'a [Indexed<Object<T, B>>]: RefUnwindSafe,
EntryRef<'a, T, B>: RefUnwindSafe,
impl<'a, T, B> Send for EntryRef<'a, T, B>
impl<'a, T, B> Sync for EntryRef<'a, T, B>
impl<'a, T, B> Unpin for EntryRef<'a, T, B>
impl<'a, T, B> UnsafeUnpin for EntryRef<'a, T, B>where
EntryRef<'a, T>: UnsafeUnpin,
&'a [Indexed<Object<T, B>>]: UnsafeUnpin,
EntryRef<'a, T, B>: UnsafeUnpin,
impl<'a, T, B> UnwindSafe for EntryRef<'a, T, B>where
EntryRef<'a, T>: UnwindSafe,
&'a [Indexed<Object<T, B>>]: UnwindSafe,
EntryRef<'a, T, B>: UnwindSafe,
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.