pub enum RefState {
Unshared,
Exclusive,
Shared(usize),
}
Expand description
References can exist in one of three states:
Unshared
means the reference has not been given out at allExclusive
means exactly one owner has the referenceShared(n)
means the reference has been given out ton
borrowers
Variants§
Exclusive
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RefState
impl RefUnwindSafe for RefState
impl Send for RefState
impl Sync for RefState
impl Unpin for RefState
impl UnwindSafe for RefState
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