pub struct DefineDecl {
pub name: String,
pub measure: Option<DefineMeasure>,
pub clauses: Vec<DefineClause>,
}Expand description
A parsed (define <name> [(measure …)] (case …) …) declaration.
Fields§
§name: StringDefinition name.
measure: Option<DefineMeasure>Optional explicit measure. When None, the termination checker
uses the default rule: structural decrease on the first argument.
clauses: Vec<DefineClause>Ordered list of (case …) clauses.
Trait Implementations§
Source§impl Clone for DefineDecl
impl Clone for DefineDecl
Source§fn clone(&self) -> DefineDecl
fn clone(&self) -> DefineDecl
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 moreSource§impl Debug for DefineDecl
impl Debug for DefineDecl
Source§impl PartialEq for DefineDecl
impl PartialEq for DefineDecl
impl StructuralPartialEq for DefineDecl
Auto Trait Implementations§
impl Freeze for DefineDecl
impl RefUnwindSafe for DefineDecl
impl Send for DefineDecl
impl Sync for DefineDecl
impl Unpin for DefineDecl
impl UnsafeUnpin for DefineDecl
impl UnwindSafe for DefineDecl
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