pub struct Same<A> { /* private fields */ }Expand description
A choice with both branches identical.
Implementations§
Trait Implementations§
Source§impl<A: Ord> Ord for Same<A>
impl<A: Ord> Ord for Same<A>
Source§impl<A: PartialOrd> PartialOrd for Same<A>
impl<A: PartialOrd> PartialOrd for Same<A>
impl<A: Copy> Copy for Same<A>
impl<A: Eq> Eq for Same<A>
impl<A> StructuralPartialEq for Same<A>
Auto Trait Implementations§
impl<A> Freeze for Same<A>where
A: Freeze,
impl<A> RefUnwindSafe for Same<A>where
A: RefUnwindSafe,
impl<A> Send for Same<A>where
A: Send,
impl<A> Sync for Same<A>where
A: Sync,
impl<A> Unpin for Same<A>where
A: Unpin,
impl<A> UnwindSafe for Same<A>where
A: 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
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