pub enum IndexedEntryRef<'a, T, B> {
Index(&'a str),
Node(EntryRef<'a, T, B>),
}Expand description
Entry of an indexed node object, key and value together.
Variants§
Implementations§
Source§impl<'a, T, B> IndexedEntryRef<'a, T, B>
impl<'a, T, B> IndexedEntryRef<'a, T, B>
Sourcepub fn into_key(self) -> IndexedEntryKeyRef<'a, T, B>
pub fn into_key(self) -> IndexedEntryKeyRef<'a, T, B>
Consumes this IndexedEntryRef, returning its key.
Sourcepub fn key(&self) -> IndexedEntryKeyRef<'a, T, B>
pub fn key(&self) -> IndexedEntryKeyRef<'a, T, B>
Returns the key of this IndexedEntryRef.
Sourcepub fn into_value(self) -> IndexedEntryValueRef<'a, T, B>
pub fn into_value(self) -> IndexedEntryValueRef<'a, T, B>
Consumes this IndexedEntryRef, returning its value.
Sourcepub fn value(&self) -> IndexedEntryValueRef<'a, T, B>
pub fn value(&self) -> IndexedEntryValueRef<'a, T, B>
Returns the value of this IndexedEntryRef.
Sourcepub fn into_key_value(
self,
) -> (IndexedEntryKeyRef<'a, T, B>, IndexedEntryValueRef<'a, T, B>)
pub fn into_key_value( self, ) -> (IndexedEntryKeyRef<'a, T, B>, IndexedEntryValueRef<'a, T, B>)
Consumes this IndexedEntryRef, returning its key and value.
Sourcepub fn as_key_value(
&self,
) -> (IndexedEntryKeyRef<'a, T, B>, IndexedEntryValueRef<'a, T, B>)
pub fn as_key_value( &self, ) -> (IndexedEntryKeyRef<'a, T, B>, IndexedEntryValueRef<'a, T, B>)
Returns the key and value of this entry.
Trait Implementations§
Source§impl<'a, T, B> Clone for IndexedEntryRef<'a, T, B>
impl<'a, T, B> Clone for IndexedEntryRef<'a, T, B>
impl<'a, T, B> Copy for IndexedEntryRef<'a, T, B>
Auto Trait Implementations§
impl<'a, T, B> Freeze for IndexedEntryRef<'a, T, B>
impl<'a, T, B> RefUnwindSafe for IndexedEntryRef<'a, T, B>where
EntryRef<'a, T, B>: RefUnwindSafe,
impl<'a, T, B> Send for IndexedEntryRef<'a, T, B>
impl<'a, T, B> Sync for IndexedEntryRef<'a, T, B>
impl<'a, T, B> Unpin for IndexedEntryRef<'a, T, B>
impl<'a, T, B> UnsafeUnpin for IndexedEntryRef<'a, T, B>where
EntryRef<'a, T, B>: UnsafeUnpin,
impl<'a, T, B> UnwindSafe for IndexedEntryRef<'a, T, B>where
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.