Struct Cycle

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

Cycling ([ <Body> ] <Next> in SF) command. If current Bit is False – executes Next Command, otherwise – executes Body and itself again.

Trait Implementations§

Source§

impl<Body, Next> Debug for Cycle<Body, Next>
where Body: Command + Debug, Next: Command + Debug,

Source§

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

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

impl<Left, Right, Body, Next, Default> Runner<Left, False, Right, Default> for Cycle<Body, Next>
where Left: List, Right: List, Body: Command, Next: Runner<Left, False, Right, Default>, Default: Bit,

Source§

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

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

impl<Left, Right, Body, Default, Next> Runner<Left, True, Right, Default> for Cycle<Body, Next>
where Left: List, Right: List, Body: Runner<Left, True, Right, Default>, Default: Bit, Next: Command, Cycle<Body, Next>: Runner<<<Body as Runner<Left, True, Right, Default>>::Run as StateTrait>::Left, <<Body as Runner<Left, True, Right, Default>>::Run as StateTrait>::Value, <<Body as Runner<Left, True, Right, Default>>::Run as StateTrait>::Right, <<Body as Runner<Left, True, Right, Default>>::Run as StateTrait>::Default>,

Source§

type Run = <Cycle<Body, Next> as Runner<<<Body as Runner<<State<Left, True, Right, Default> as StateTrait>::Left, <State<Left, True, Right, Default> as StateTrait>::Value, <State<Left, True, Right, Default> as StateTrait>::Right, <State<Left, True, Right, Default> as StateTrait>::Default>>::Run as StateTrait>::Left, <<Body as Runner<<State<Left, True, Right, Default> as StateTrait>::Left, <State<Left, True, Right, Default> as StateTrait>::Value, <State<Left, True, Right, Default> as StateTrait>::Right, <State<Left, True, Right, Default> as StateTrait>::Default>>::Run as StateTrait>::Value, <<Body as Runner<<State<Left, True, Right, Default> as StateTrait>::Left, <State<Left, True, Right, Default> as StateTrait>::Value, <State<Left, True, Right, Default> as StateTrait>::Right, <State<Left, True, Right, Default> as StateTrait>::Default>>::Run as StateTrait>::Right, <<Body as Runner<<State<Left, True, Right, Default> as StateTrait>::Left, <State<Left, True, Right, Default> as StateTrait>::Value, <State<Left, True, Right, Default> as StateTrait>::Right, <State<Left, True, Right, Default> as StateTrait>::Default>>::Run as StateTrait>::Default>>::Run

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

impl<Body, Next> Command for Cycle<Body, Next>
where Body: Command, Next: Command,

Auto Trait Implementations§

§

impl<Body, Next> Freeze for Cycle<Body, Next>

§

impl<Body, Next> RefUnwindSafe for Cycle<Body, Next>
where Body: RefUnwindSafe, Next: RefUnwindSafe,

§

impl<Body, Next> Send for Cycle<Body, Next>
where Body: Send, Next: Send,

§

impl<Body, Next> Sync for Cycle<Body, Next>
where Body: Sync, Next: Sync,

§

impl<Body, Next> Unpin for Cycle<Body, Next>
where Body: Unpin, Next: Unpin,

§

impl<Body, Next> UnwindSafe for Cycle<Body, Next>
where Body: UnwindSafe, 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.