pub struct Exclusive<I: ExclusiveKind>(/* private fields */);Expand description
Immediate storage requires exclusive access to mutate. I describes whether
interior-mutable storage is reachable through indirection.
Trait Implementations§
Source§impl<I: ExclusiveKind, R> Add<Exclusive<I>> for WithInterior<R>where
Self: Add<I>,
impl<I: ExclusiveKind, R> Add<Exclusive<I>> for WithInterior<R>where
Self: Add<I>,
Source§impl<L: ExclusiveKind + Add<R, Output: ExclusiveKind>, R: ExclusiveKind> Add<Exclusive<R>> for Exclusive<L>
impl<L: ExclusiveKind + Add<R, Output: ExclusiveKind>, R: ExclusiveKind> Add<Exclusive<R>> for Exclusive<L>
Source§impl<I: ExclusiveKind + Add<WithInterior<R>>, R> Add<WithInterior<R>> for Exclusive<I>
impl<I: ExclusiveKind + Add<WithInterior<R>>, R> Add<WithInterior<R>> for Exclusive<I>
Source§impl<I: ExclusiveKind> PointerMutability for Exclusive<I>
impl<I: ExclusiveKind> PointerMutability for Exclusive<I>
Auto Trait Implementations§
impl<I> Freeze for Exclusive<I>where
PhantomData<I>: Freeze,
impl<I> RefUnwindSafe for Exclusive<I>where
PhantomData<I>: RefUnwindSafe,
impl<I> Send for Exclusive<I>where
PhantomData<I>: Send,
impl<I> Sync for Exclusive<I>where
PhantomData<I>: Sync,
impl<I> Unpin for Exclusive<I>where
PhantomData<I>: Unpin,
impl<I> UnsafeUnpin for Exclusive<I>where
PhantomData<I>: UnsafeUnpin,
impl<I> UnwindSafe for Exclusive<I>where
PhantomData<I>: UnwindSafe,
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