pub enum RecursionTree {
Base {
label: String,
},
Rec {
label: String,
decreasing_arg: String,
child: Box<RecursionTree>,
},
Branch {
label: String,
arms: Vec<RecursionTree>,
},
}Expand description
A ranked proof tree for tracking structural recursion depth.
Variants§
Base
A base case (leaf).
Rec
A recursive case with a child proof tree.
Branch
A branching point (e.g., match with multiple arms).
Implementations§
Trait Implementations§
Source§impl Clone for RecursionTree
impl Clone for RecursionTree
Source§fn clone(&self) -> RecursionTree
fn clone(&self) -> RecursionTree
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 RecursionTree
impl RefUnwindSafe for RecursionTree
impl Send for RecursionTree
impl Sync for RecursionTree
impl Unpin for RecursionTree
impl UnsafeUnpin for RecursionTree
impl UnwindSafe for RecursionTree
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