pub struct Readable<'a, K, V, S> { /* private fields */ }
Expand description
RAII structure used to release the shared read access, when dropped.
Implementations
sourceimpl<K: Eq + Hash, V, S: BuildHasher> Readable<'_, K, V, S>
impl<K: Eq + Hash, V, S: BuildHasher> Readable<'_, K, V, S>
sourcepub fn get_key_value(&self) -> Option<(&K, &V)>
pub fn get_key_value(&self) -> Option<(&K, &V)>
Returns the key-value pair corresponding to the supplied key.
sourcepub fn contains_key(&self) -> bool
pub fn contains_key(&self) -> bool
Returns true
if the map contains a value for the specified key.
Trait Implementations
Auto Trait Implementations
impl<'a, K, V, S> RefUnwindSafe for Readable<'a, K, V, S> where
K: RefUnwindSafe,
impl<'a, K, V, S> !Send for Readable<'a, K, V, S>
impl<'a, K, V, S> Sync for Readable<'a, K, V, S> where
K: Sync,
S: Sync,
V: Sync,
impl<'a, K, V, S> Unpin for Readable<'a, K, V, S>
impl<'a, K, V, S> UnwindSafe for Readable<'a, K, V, S> where
K: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more