pub struct CompileResult {
pub tree: DecisionTree,
pub unreachable_arms: Vec<usize>,
pub missing_patterns: Vec<Vec<Pattern>>,
}Expand description
Result of compilation.
Fields§
§tree: DecisionTreeThe decision tree
unreachable_arms: Vec<usize>Indices of unreachable arms (redundancy)
missing_patterns: Vec<Vec<Pattern>>Missing constructor patterns (for exhaustiveness errors)
Trait Implementations§
Source§impl Clone for CompileResult
impl Clone for CompileResult
Source§fn clone(&self) -> CompileResult
fn clone(&self) -> CompileResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompileResult
impl RefUnwindSafe for CompileResult
impl Send for CompileResult
impl Sync for CompileResult
impl Unpin for CompileResult
impl UnsafeUnpin for CompileResult
impl UnwindSafe for CompileResult
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