pub struct ViewMap<'a, K, V> { /* private fields */ }Expand description
A typed, zero-copy map facade built on MapView.
Implementations§
Source§impl<'a, K: FieldDecode<'a>, V: FieldDecode<'a>> ViewMap<'a, K, V>
impl<'a, K: FieldDecode<'a>, V: FieldDecode<'a>> ViewMap<'a, K, V>
Source§impl<'a, V: FieldDecode<'a>> ViewMap<'a, StringView<'a>, V>
impl<'a, V: FieldDecode<'a>> ViewMap<'a, StringView<'a>, V>
pub fn find_str(&self, key: &str) -> Option<(StringView<'a>, V)>
Source§impl<'a, K: FieldDecode<'a> + MapKey + Scalar + PartialEq, V: FieldDecode<'a>> ViewMap<'a, K, V>
impl<'a, K: FieldDecode<'a> + MapKey + Scalar + PartialEq, V: FieldDecode<'a>> ViewMap<'a, K, V>
pub fn find_scalar(&self, key: K) -> Option<(K, V)>
Trait Implementations§
impl<'a, K, V> Copy for ViewMap<'a, K, V>
Source§impl<'a, K: FieldDecode<'a>, V: FieldDecode<'a>> IntoIterator for ViewMap<'a, K, V>
impl<'a, K: FieldDecode<'a>, V: FieldDecode<'a>> IntoIterator for ViewMap<'a, K, V>
Auto Trait Implementations§
impl<'a, K, V> Freeze for ViewMap<'a, K, V>
impl<'a, K, V> RefUnwindSafe for ViewMap<'a, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for ViewMap<'a, K, V>
impl<'a, K, V> Sync for ViewMap<'a, K, V>
impl<'a, K, V> Unpin for ViewMap<'a, K, V>
impl<'a, K, V> UnsafeUnpin for ViewMap<'a, K, V>
impl<'a, K, V> UnwindSafe for ViewMap<'a, K, V>where
K: UnwindSafe,
V: 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