pub enum ChoiceDerState<Left, Right> {
Left(Left),
Right(Right),
}Expand description
Cursor for a binary choice.
Variants§
Implementations§
Source§impl<Left, Right> ChoiceDerState<Left, Right>
impl<Left, Right> ChoiceDerState<Left, Right>
pub fn arrow_Left_0(self) -> Left
pub fn arrow_Right_0(self) -> Right
Trait Implementations§
Source§impl<Left: Clone, Right: Clone> Clone for ChoiceDerState<Left, Right>
impl<Left: Clone, Right: Clone> Clone for ChoiceDerState<Left, Right>
Source§fn clone(&self) -> ChoiceDerState<Left, Right>
fn clone(&self) -> ChoiceDerState<Left, Right>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Left: Default, Right> Default for ChoiceDerState<Left, Right>
impl<Left: Default, Right> Default for ChoiceDerState<Left, Right>
impl<Left: Copy, Right: Copy> Copy for ChoiceDerState<Left, Right>
Auto Trait Implementations§
impl<Left, Right> Freeze for ChoiceDerState<Left, Right>
impl<Left, Right> RefUnwindSafe for ChoiceDerState<Left, Right>where
Left: RefUnwindSafe,
Right: RefUnwindSafe,
impl<Left, Right> Send for ChoiceDerState<Left, Right>
impl<Left, Right> Sync for ChoiceDerState<Left, Right>
impl<Left, Right> Unpin for ChoiceDerState<Left, Right>
impl<Left, Right> UnsafeUnpin for ChoiceDerState<Left, Right>where
Left: UnsafeUnpin,
Right: UnsafeUnpin,
impl<Left, Right> UnwindSafe for ChoiceDerState<Left, Right>where
Left: UnwindSafe,
Right: 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