pub enum IndexedEntryRef<'a, T, B> {
Index(&'a str),
Node(EntryRef<'a, T, B>),
}
Variants§
Implementations§
Source§impl<'a, T, B> IndexedEntryRef<'a, T, B>
impl<'a, T, B> IndexedEntryRef<'a, T, B>
pub fn into_key(self) -> IndexedEntryKeyRef<'a, T, B>
pub fn key(&self) -> IndexedEntryKeyRef<'a, T, B>
pub fn into_value(self) -> IndexedEntryValueRef<'a, T, B>
pub fn value(&self) -> IndexedEntryValueRef<'a, T, B>
pub fn into_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>)
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
B: RefUnwindSafe,
T: 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> UnwindSafe for IndexedEntryRef<'a, T, B>where
B: RefUnwindSafe,
T: RefUnwindSafe,
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