pub enum Guard<'a> {
Raw(&'a Index),
RefCell(Ref<'a, Index>),
}Expand description
A read-only index guard returned by IndexRef::get.
This type abstracts over either a plain reference or a RefCell borrow.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Guard<'a>
impl<'a> !Send for Guard<'a>
impl<'a> !Sync for Guard<'a>
impl<'a> !UnwindSafe for Guard<'a>
impl<'a> Freeze for Guard<'a>
impl<'a> Unpin for Guard<'a>
impl<'a> UnsafeUnpin for Guard<'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