pub struct MapRef<'a, T> { /* private fields */ }Expand description
Immutable reference container for Persist returned by Entities::borrow()
This struct is required to contain a hidden borrow to the requested Persist.
The reason for this is so we can borrow multiple Persist, but not break the
borrow checker rules for borrows on a single Persist.
Methods from Deref<Target = Persist<T>>§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for MapRef<'a, T>
impl<'a, T> !RefUnwindSafe for MapRef<'a, T>
impl<'a, T> !Send for MapRef<'a, T>
impl<'a, T> !Sync for MapRef<'a, T>
impl<'a, T> Unpin for MapRef<'a, T>
impl<'a, T> UnsafeUnpin for MapRef<'a, T>
impl<'a, T> !UnwindSafe for MapRef<'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