pub struct Readable<'a, K, V, S> { /* private fields */ }
Expand description
RAII structure used to release the shared read access, when dropped.
Implementations§
Source§impl<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> Freeze for Readable<'a, K, V, S>
impl<'a, K, V, S> RefUnwindSafe for Readable<'a, K, V, S>
impl<'a, K, V, S> !Send for Readable<'a, K, V, S>
impl<'a, K, V, S> Sync for Readable<'a, K, V, S>
impl<'a, K, V, S> Unpin for Readable<'a, K, V, S>
impl<'a, K, V, S> UnwindSafe for Readable<'a, K, V, S>
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