pub enum PatternStructure {
Atom(String),
App {
func: String,
args: Vec<PatternStructure>,
},
Binary {
op: String,
left: Box<PatternStructure>,
right: Box<PatternStructure>,
},
Quantified {
quantifier: String,
var: String,
body: Box<PatternStructure>,
},
}Expand description
The structure of a pattern (simplified representation).
Variants§
Atom(String)
Atomic pattern (variable or constant)
App
Application of a function/predicate
Binary
Binary operation pattern
Quantified
Quantified pattern
Trait Implementations§
Source§impl Clone for PatternStructure
impl Clone for PatternStructure
Source§fn clone(&self) -> PatternStructure
fn clone(&self) -> PatternStructure
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 PatternStructure
impl Debug for PatternStructure
Source§impl Display for PatternStructure
impl Display for PatternStructure
Source§impl Hash for PatternStructure
impl Hash for PatternStructure
Source§impl PartialEq for PatternStructure
impl PartialEq for PatternStructure
impl Eq for PatternStructure
impl StructuralPartialEq for PatternStructure
Auto Trait Implementations§
impl Freeze for PatternStructure
impl RefUnwindSafe for PatternStructure
impl Send for PatternStructure
impl Sync for PatternStructure
impl Unpin for PatternStructure
impl UnsafeUnpin for PatternStructure
impl UnwindSafe for PatternStructure
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