pub struct Exclusive<T, F, G> { /* private fields */ }Expand description
A choice with a common resource.
Implementations§
Trait Implementations§
impl<T: Copy, F: Copy, G: Copy> Copy for Exclusive<T, F, G>
impl<T: Eq, F: Eq, G: Eq> Eq for Exclusive<T, F, G>
impl<T, F, G> StructuralPartialEq for Exclusive<T, F, G>
Auto Trait Implementations§
impl<T, F, G> Freeze for Exclusive<T, F, G>
impl<T, F, G> RefUnwindSafe for Exclusive<T, F, G>
impl<T, F, G> Send for Exclusive<T, F, G>
impl<T, F, G> Sync for Exclusive<T, F, G>
impl<T, F, G> Unpin for Exclusive<T, F, G>
impl<T, F, G> UnwindSafe for Exclusive<T, F, G>
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
Source§impl<T> Choice for Twhere
T: DynChoice,
impl<T> Choice for Twhere
T: DynChoice,
Source§fn map_left<C, F: FnOnce(Self::Left) -> C>(
self,
left: F,
) -> ChooseMap<Self, Both<F, fn(Self::Right) -> Self::Right>>
fn map_left<C, F: FnOnce(Self::Left) -> C>( self, left: F, ) -> ChooseMap<Self, Both<F, fn(Self::Right) -> Self::Right>>
Maps the left value. Read more
Source§fn map_right<C, G: FnOnce(Self::Right) -> C>(
self,
right: G,
) -> ChooseMap<Self, Both<fn(Self::Left) -> Self::Left, G>>
fn map_right<C, G: FnOnce(Self::Right) -> C>( self, right: G, ) -> ChooseMap<Self, Both<fn(Self::Left) -> Self::Left, G>>
Maps the right value. Read more
Source§fn map_both<C, D, F: FnOnce(Self::Left) -> C, G: FnOnce(Self::Right) -> D>(
self,
left: F,
right: G,
) -> ChooseMap<Self, Both<F, G>>
fn map_both<C, D, F: FnOnce(Self::Left) -> C, G: FnOnce(Self::Right) -> D>( self, left: F, right: G, ) -> ChooseMap<Self, Both<F, G>>
Maps both values. Read more
Source§fn choose_map<T: Choice, C, D>(self, choice: T) -> ChooseMap<Self, T>
fn choose_map<T: Choice, C, D>(self, choice: T) -> ChooseMap<Self, T>
Composes a choice of values with a choice of functions to produce a choice of values. Read more
Source§fn cobind_left<C, F: FnOnce(Self) -> C>(self, left: F) -> LeftCoBind<Self, F>
fn cobind_left<C, F: FnOnce(Self) -> C>(self, left: F) -> LeftCoBind<Self, F>
Sets the left value to a map from the current state to be ran if chosen. Read more
Source§fn cobind_right<C, G: FnOnce(Self) -> C>(self, right: G) -> RightCoBind<Self, G>
fn cobind_right<C, G: FnOnce(Self) -> C>(self, right: G) -> RightCoBind<Self, G>
Sets the right value to a map from the current state to be ran if chosen. Read more