pub enum IfElseExpand {
ComptimeThen,
ComptimeElse,
Runtime {
runtime_cond: ExpandElement,
then_child: CubeContext,
},
}
Variants§
Implementations§
Source§impl IfElseExpand
impl IfElseExpand
pub fn or_else( self, context: &mut CubeContext, else_block: impl FnOnce(&mut CubeContext), )
Auto Trait Implementations§
impl Freeze for IfElseExpand
impl !RefUnwindSafe for IfElseExpand
impl !Send for IfElseExpand
impl !Sync for IfElseExpand
impl Unpin for IfElseExpand
impl !UnwindSafe for IfElseExpand
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