pub enum MutGuard<'a> {
Raw(&'a mut Index),
RefCell(RefMut<'a, Index>),
}Expand description
A mutable index guard returned by IndexRef::get_mut.
This type abstracts over either a plain mutable reference or a mutable
RefCell borrow.
Variants§
Methods from Deref<Target = Index>§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MutGuard<'a>
impl<'a> !Send for MutGuard<'a>
impl<'a> !Sync for MutGuard<'a>
impl<'a> !UnwindSafe for MutGuard<'a>
impl<'a> Freeze for MutGuard<'a>
impl<'a> Unpin for MutGuard<'a>
impl<'a> UnsafeUnpin for MutGuard<'a>
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