pub struct WithInterior<R>(/* private fields */);Expand description
Storage mutable through shared access. R aggregates the robustness of all
interior-mutable parts, including those reachable through indirection,
independently of the whole value’s RustSpec::Trap classification.
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<R> Add<WithInterior<R>> for WithoutInterior
impl<R> Add<WithInterior<R>> for WithoutInterior
Source§type Output = WithInterior<R>
type Output = WithInterior<R>
The resulting type after applying the
+ operator.Source§impl<L: Add<R>, R> Add<WithInterior<R>> for WithInterior<L>
impl<L: Add<R>, R> Add<WithInterior<R>> for WithInterior<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<R> Add<WithoutInterior> for WithInterior<R>
impl<R> Add<WithoutInterior> for WithInterior<R>
Source§type Output = WithInterior<R>
type Output = WithInterior<R>
The resulting type after applying the
+ operator.impl<R> ExclusiveKind for WithInterior<R>
Source§impl<R> PointerMutability for WithInterior<R>
impl<R> PointerMutability for WithInterior<R>
type Output = Exclusive<WithInterior<R>>
Auto Trait Implementations§
impl<R> Freeze for WithInterior<R>where
PhantomData<R>: Freeze,
impl<R> RefUnwindSafe for WithInterior<R>where
PhantomData<R>: RefUnwindSafe,
impl<R> Send for WithInterior<R>where
PhantomData<R>: Send,
impl<R> Sync for WithInterior<R>where
PhantomData<R>: Sync,
impl<R> Unpin for WithInterior<R>where
PhantomData<R>: Unpin,
impl<R> UnsafeUnpin for WithInterior<R>where
PhantomData<R>: UnsafeUnpin,
impl<R> UnwindSafe for WithInterior<R>where
PhantomData<R>: 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