pub struct ReadGuard<'a, K, V, S> { /* private fields */ }
Implementations
sourceimpl<'a, K, V, S: BuildHasher> ReadGuard<'a, K, V, S>
impl<'a, K, V, S: BuildHasher> ReadGuard<'a, K, V, S>
pub fn len(&self) -> usize
pub fn contains_key<Q: ?Sized>(&self, key: &Q) -> bool where
Alias<K>: Borrow<Q> + Eq + Hash,
Q: Hash + Eq,
pub fn get<Q: ?Sized>(&self, key: &Q) -> Option<&V> where
Alias<K>: Borrow<Q> + Eq + Hash,
Q: Hash + Eq,
pub fn iter(&self) -> impl Iterator<Item = (&K, &V)>
pub fn keys(&self) -> impl Iterator<Item = &K>
pub fn values(&self) -> impl Iterator<Item = &V>
Trait Implementations
Auto Trait Implementations
impl<'a, K, V, S> !RefUnwindSafe for ReadGuard<'a, K, V, S>
impl<'a, K, V, S> !Send for ReadGuard<'a, K, V, S>
impl<'a, K, V, S> !Sync for ReadGuard<'a, K, V, S>
impl<'a, K, V, S> Unpin for ReadGuard<'a, K, V, S>
impl<'a, K, V, S> !UnwindSafe for ReadGuard<'a, K, V, S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more