Skip to main content

Exclusive

Struct Exclusive 

Source
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>,

Source§

type Output = <WithInterior<R> as Add<I>>::Output

The resulting type after applying the + operator.
Source§

fn add(self, _: Exclusive<I>) -> Self::Output

Performs the + operation. Read more
Source§

impl<L: ExclusiveKind + Add<R, Output: ExclusiveKind>, R: ExclusiveKind> Add<Exclusive<R>> for Exclusive<L>

Source§

type Output = Exclusive<<L as Add<R>>::Output>

The resulting type after applying the + operator.
Source§

fn add(self, _: Exclusive<R>) -> Self::Output

Performs the + operation. Read more
Source§

impl<I: ExclusiveKind + Add<WithInterior<R>>, R> Add<WithInterior<R>> for Exclusive<I>

Source§

type Output = <I as Add<WithInterior<R>>>::Output

The resulting type after applying the + operator.
Source§

fn add(self, _: WithInterior<R>) -> Self::Output

Performs the + operation. Read more
Source§

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>

§

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>

§

impl<I> UnwindSafe for Exclusive<I>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.