pub enum IfElseExprExpand<C: CubeType> {
ComptimeThen(ExpandElementTyped<C>),
ComptimeElse,
Runtime {
runtime_cond: ExpandElement,
out: ExpandElementTyped<C>,
then_child: Scope,
},
}
Variants§
Implementations§
Source§impl<C: CubePrimitive> IfElseExprExpand<C>
impl<C: CubePrimitive> IfElseExprExpand<C>
pub fn or_else( self, scope: &mut Scope, else_block: impl FnOnce(&mut Scope) -> ExpandElementTyped<C>, ) -> ExpandElementTyped<C>
Auto Trait Implementations§
impl<C> Freeze for IfElseExprExpand<C>
impl<C> !RefUnwindSafe for IfElseExprExpand<C>
impl<C> !Send for IfElseExprExpand<C>
impl<C> !Sync for IfElseExprExpand<C>
impl<C> Unpin for IfElseExprExpand<C>where
C: Unpin,
impl<C> !UnwindSafe for IfElseExprExpand<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more