pub enum IdemMut<'a, T>where
T: ToOwning,{
Change(&'a mut T),
Keep(&'a mut T::Owning),
}Expand description
Provides a mutable reference to either a T or a T::Owning.
Variants§
Change(&'a mut T)
Provides a mutable reference to a T.
Keep(&'a mut T::Owning)
Provides a mutable reference to a T::Owning.
Trait Implementations§
impl<'a, T> Eq for IdemMut<'a, T>
impl<'a, T> StructuralPartialEq for IdemMut<'a, T>where
T: ToOwning,
Auto Trait Implementations§
impl<'a, T> Freeze for IdemMut<'a, T>
impl<'a, T> RefUnwindSafe for IdemMut<'a, T>
impl<'a, T> Send for IdemMut<'a, T>
impl<'a, T> Sync for IdemMut<'a, T>
impl<'a, T> Unpin for IdemMut<'a, T>
impl<'a, T> !UnwindSafe for IdemMut<'a, 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