pub struct MappedRefMut<'a, K, V, T, S = RandomState> { /* private fields */ }
Implementations
sourceimpl<'a, K: Eq + Hash, V, T, S: BuildHasher> MappedRefMut<'a, K, V, T, S>
impl<'a, K: Eq + Hash, V, T, S: BuildHasher> MappedRefMut<'a, K, V, T, S>
pub fn key(&self) -> &K
pub fn value(&self) -> &T
pub fn value_mut(&mut self) -> &mut T
pub fn pair(&self) -> (&K, &T)
pub fn pair_mut(&mut self) -> (&K, &mut T)
pub fn map<F, T2>(self, f: F) -> MappedRefMut<'a, K, V, T2, S> where
F: FnOnce(&mut T) -> &mut T2,
pub fn try_map<F, T2>(self, f: F) -> Result<MappedRefMut<'a, K, V, T2, S>, Self> where
F: FnOnce(&mut T) -> Option<&mut T2>,
Trait Implementations
sourceimpl<'a, K: Eq + Hash + Debug, V, T: Debug, S: BuildHasher> Debug for MappedRefMut<'a, K, V, T, S>
impl<'a, K: Eq + Hash + Debug, V, T: Debug, S: BuildHasher> Debug for MappedRefMut<'a, K, V, T, S>
sourceimpl<'a, K: Eq + Hash, V, T, S: BuildHasher> Deref for MappedRefMut<'a, K, V, T, S>
impl<'a, K: Eq + Hash, V, T, S: BuildHasher> Deref for MappedRefMut<'a, K, V, T, S>
sourceimpl<'a, K: Eq + Hash, V, T, S: BuildHasher> DerefMut for MappedRefMut<'a, K, V, T, S>
impl<'a, K: Eq + Hash, V, T, S: BuildHasher> DerefMut for MappedRefMut<'a, K, V, T, S>
Auto Trait Implementations
impl<'a, K, V, T, S = RandomState> !RefUnwindSafe for MappedRefMut<'a, K, V, T, S>
impl<'a, K, V, T, S = RandomState> !Send for MappedRefMut<'a, K, V, T, S>
impl<'a, K, V, T, S = RandomState> !Sync for MappedRefMut<'a, K, V, T, S>
impl<'a, K, V, T, S> Unpin for MappedRefMut<'a, K, V, T, S>
impl<'a, K, V, T, S = RandomState> !UnwindSafe for MappedRefMut<'a, K, V, T, 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