Struct Left

Source
pub struct Left<Next = EOF>(/* private fields */)
where
    Next: Command;
Expand description

Go left (< <Next> in SF) command. If left List is Nil, current bit will be from Default attribute from state.

Trait Implementations§

Source§

impl<Next> Debug for Left<Next>
where Next: Command + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<LeftNew, ValueNew, ValuePrev, RightPrev, Default, Next> Runner<Cons<ValueNew, LeftNew>, ValuePrev, RightPrev, Default> for Left<Next>
where LeftNew: List, ValueNew: Bit, ValuePrev: Bit, RightPrev: List, Next: Runner<LeftNew, ValueNew, Cons<ValuePrev, RightPrev>, Default>, Default: Bit,

Source§

type Run = <Next as Runner<<State<LeftNew, ValueNew, Cons<ValuePrev, RightPrev>, Default> as StateTrait>::Left, <State<LeftNew, ValueNew, Cons<ValuePrev, RightPrev>, Default> as StateTrait>::Value, <State<LeftNew, ValueNew, Cons<ValuePrev, RightPrev>, Default> as StateTrait>::Right, <State<LeftNew, ValueNew, Cons<ValuePrev, RightPrev>, Default> as StateTrait>::Default>>::Run

Result of running on State<Left, Value, Right>.
Source§

impl<Value, Right, Next, Default> Runner<Nil, Value, Right, Default> for Left<Next>
where Value: Bit, Right: List, Default: Bit, Next: Runner<Nil, Default, Cons<Value, Right>, Default>,

Source§

type Run = <Next as Runner<<State<Nil, Default, Cons<Value, Right>, Default> as StateTrait>::Left, <State<Nil, Default, Cons<Value, Right>, Default> as StateTrait>::Value, <State<Nil, Default, Cons<Value, Right>, Default> as StateTrait>::Right, <State<Nil, Default, Cons<Value, Right>, Default> as StateTrait>::Default>>::Run

Result of running on State<Left, Value, Right>.
Source§

impl<Next> Command for Left<Next>
where Next: Command,

Auto Trait Implementations§

§

impl<Next> Freeze for Left<Next>

§

impl<Next> RefUnwindSafe for Left<Next>
where Next: RefUnwindSafe,

§

impl<Next> Send for Left<Next>
where Next: Send,

§

impl<Next> Sync for Left<Next>
where Next: Sync,

§

impl<Next> Unpin for Left<Next>
where Next: Unpin,

§

impl<Next> UnwindSafe for Left<Next>
where Next: UnwindSafe,

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.