pub enum CaseTree {
Leaf {
body_idx: usize,
},
Switch {
scrutinee: usize,
branches: Vec<CaseBranch>,
default: Option<Box<CaseTree>>,
},
Failure,
}Expand description
Result of pattern compilation.
Variants§
Leaf
A leaf node: execute the body at the given index
Switch
A switch on a scrutinee column
Fields
§
branches: Vec<CaseBranch>Constructor branches
Failure
Pattern match failure (non-exhaustive)
Trait Implementations§
impl StructuralPartialEq for CaseTree
Auto Trait Implementations§
impl Freeze for CaseTree
impl RefUnwindSafe for CaseTree
impl Send for CaseTree
impl Sync for CaseTree
impl Unpin for CaseTree
impl UnsafeUnpin for CaseTree
impl UnwindSafe for CaseTree
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