pub enum MatchExpandExpr<T: CubeEnum, C: Assign> {
ComptimeVariant {
variant: i32,
runtime_value: T::RuntimeValue,
out: Option<C>,
matched: bool,
},
RuntimeVariant {
variant: NativeExpand<i32>,
out: C,
cases: Vec<(NativeExpand<i32>, Scope)>,
runtime_value: T::RuntimeValue,
default: Option<Scope>,
},
}Variants§
ComptimeVariant
RuntimeVariant
Fields
§
variant: NativeExpand<i32>§
out: C§
cases: Vec<(NativeExpand<i32>, Scope)>§
runtime_value: T::RuntimeValueImplementations§
Source§impl<T: CubeEnum, C: Assign> MatchExpandExpr<T, C>
impl<T: CubeEnum, C: Assign> MatchExpandExpr<T, C>
Auto Trait Implementations§
impl<T, C> Freeze for MatchExpandExpr<T, C>
impl<T, C> !RefUnwindSafe for MatchExpandExpr<T, C>
impl<T, C> !Send for MatchExpandExpr<T, C>
impl<T, C> !Sync for MatchExpandExpr<T, C>
impl<T, C> Unpin for MatchExpandExpr<T, C>
impl<T, C> UnsafeUnpin for MatchExpandExpr<T, C>
impl<T, C> !UnwindSafe for MatchExpandExpr<T, 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