pub struct MappedRefMut<'a, K, V, T> { /* private fields */ }
Implementations§
Source§impl<'a, K: Eq + Hash, V, T> MappedRefMut<'a, K, V, T>
impl<'a, K: Eq + Hash, V, T> MappedRefMut<'a, K, V, T>
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>
pub fn try_map<F, T2>(self, f: F) -> Result<MappedRefMut<'a, K, V, T2>, Self>
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V, T> Freeze for MappedRefMut<'a, K, V, T>
impl<'a, K, V, T> !RefUnwindSafe for MappedRefMut<'a, K, V, T>
impl<'a, K, V, T> !Send for MappedRefMut<'a, K, V, T>
impl<'a, K, V, T> !Sync for MappedRefMut<'a, K, V, T>
impl<'a, K, V, T> Unpin for MappedRefMut<'a, K, V, T>
impl<'a, K, V, T> !UnwindSafe for MappedRefMut<'a, K, V, T>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes