#[repr(u8)]pub enum BorrowKind {
CallSite = 0,
Backing = 1,
BackingMut = 2,
}Variants§
CallSite = 0
Borrowed from the call site, not extending past it.
Backing = 1
Borrowed from the backing store, extending past the call site.
BackingMut = 2
Mutably borrowed from the backing store, extending past the call site.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BorrowKind
impl RefUnwindSafe for BorrowKind
impl Send for BorrowKind
impl Sync for BorrowKind
impl Unpin for BorrowKind
impl UnsafeUnpin for BorrowKind
impl UnwindSafe for BorrowKind
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