Enum lovm2::gen::Repeat [−][src]
Runs a Block forever or until a condition is met
Variants
Fields of Endless
block: 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]
T: Into<Variable>,
U: Into<Expr>,
Trait Implementations
impl Clone for Repeat
[src]
impl<'_> From<&'_ mut Repeat> for HirElement
[src]
pub fn from(repeat: &mut Repeat) -> HirElement
[src]
impl From<Repeat> for HirElement
[src]
pub fn from(repeat: Repeat) -> HirElement
[src]
impl HasBlock for Repeat
[src]
pub fn block_mut(&mut self) -> &mut Block
[src]
pub fn step<T>(&mut self, element: T) -> &mut Self where
T: Into<HirElement>,
[src]
T: Into<HirElement>,
pub fn branch(&mut self) -> &mut Branch
[src]
pub fn repeat(&mut self) -> &mut Repeat
[src]
pub fn repeat_until(&mut self, condition: Expr) -> &mut Repeat
[src]
pub fn repeat_iterating<U, T>(&mut self, collection: U, item: T) -> &mut Repeat where
T: Into<Variable>,
U: Into<Expr>,
[src]
T: Into<Variable>,
U: Into<Expr>,
impl HirLowering for Repeat
[src]
pub fn lower<'hir, 'lir>(&'hir self, runtime: &mut HirLoweringRuntime<'lir>) where
'hir: 'lir,
[src]
'hir: 'lir,
Auto Trait Implementations
impl !RefUnwindSafe for Repeat
[src]
impl !Send for Repeat
[src]
impl !Sync for Repeat
[src]
impl Unpin for Repeat
[src]
impl !UnwindSafe for Repeat
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,