Struct lovm2::gen::Branch [−][src]
Conditional execution
Implementations
impl Branch
[src]
pub fn new() -> Branch
[src]
pub fn add_condition(&mut self, condition: Expr) -> &mut Block
[src]
Expects a condition that evaluates to boolean true
pub fn default_condition(&mut self) -> &mut Block
[src]
Block
to execute if no condition evaluates to true
Trait Implementations
impl Clone for Branch
[src]
impl From<Branch> for HirElement
[src]
pub fn from(branch: Branch) -> HirElement
[src]
impl HirLowering for Branch
[src]
pub fn lower<'hir, 'lir>(&'hir self, runtime: &mut HirLoweringRuntime<'lir>) where
'hir: 'lir,
[src]
'hir: 'lir,
Auto Trait Implementations
impl !RefUnwindSafe for Branch
[src]
impl !Send for Branch
[src]
impl !Sync for Branch
[src]
impl Unpin for Branch
[src]
impl !UnwindSafe for Branch
[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>,