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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more