Enum lovm2::gen::Repeat[][src]

pub enum Repeat {
    Endless {
        block: Block,
    },
    Iterating {
        collection: Expr,
        item: Variable,
        block: Block,
    },
    Until {
        condition: Expr,
        block: Block,
    },
}

Runs a Block forever or until a condition is met

Variants

Endless

Fields of Endless

block: Block
Iterating

Fields of Iterating

collection: Expritem: Variableblock: Block
Until

Fields of Until

condition: Exprblock: Block

Implementations

impl Repeat[src]

pub fn endless() -> Repeat[src]

pub fn until(condition: Expr) -> Repeat[src]

pub fn iterating<U, T>(collection: U, item: T) -> Repeat where
    T: Into<Variable>,
    U: Into<Expr>, 
[src]

Trait Implementations

impl Clone for Repeat[src]

impl<'_> From<&'_ mut Repeat> for HirElement[src]

impl From<Repeat> for HirElement[src]

impl HasBlock for Repeat[src]

impl HirLowering for Repeat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.