pub enum Constraint<'tree> {
Show 18 variants
Apply(Box<Apply<'tree>>),
Infix(Box<Infix<'tree>>),
Literal(Box<Literal<'tree>>),
Name(Box<Name<'tree>>),
Parens(Box<Parens<'tree>>),
PrefixId(Box<PrefixId<'tree>>),
PrefixTuple(Box<PrefixTuple<'tree>>),
PrefixUnboxedSum(Box<PrefixUnboxedSum<'tree>>),
PrefixUnboxedTuple(Box<PrefixUnboxedTuple<'tree>>),
Promoted(Box<Promoted<'tree>>),
Qualified(Box<Qualified<'tree>>),
Quasiquote(Box<Quasiquote<'tree>>),
Splice(Box<Splice<'tree>>),
Tuple(Box<Tuple<'tree>>),
UnboxedUnit(Box<UnboxedUnit<'tree>>),
Unit(Box<Unit<'tree>>),
Variable(Box<Variable<'tree>>),
Wildcard(Box<Wildcard<'tree>>),
}Variants§
Apply(Box<Apply<'tree>>)
Infix(Box<Infix<'tree>>)
Literal(Box<Literal<'tree>>)
Name(Box<Name<'tree>>)
Parens(Box<Parens<'tree>>)
PrefixId(Box<PrefixId<'tree>>)
PrefixTuple(Box<PrefixTuple<'tree>>)
PrefixUnboxedSum(Box<PrefixUnboxedSum<'tree>>)
PrefixUnboxedTuple(Box<PrefixUnboxedTuple<'tree>>)
Promoted(Box<Promoted<'tree>>)
Qualified(Box<Qualified<'tree>>)
Quasiquote(Box<Quasiquote<'tree>>)
Splice(Box<Splice<'tree>>)
Tuple(Box<Tuple<'tree>>)
UnboxedUnit(Box<UnboxedUnit<'tree>>)
Unit(Box<Unit<'tree>>)
Variable(Box<Variable<'tree>>)
Wildcard(Box<Wildcard<'tree>>)
Trait Implementations§
Source§impl<'tree> Clone for Constraint<'tree>
impl<'tree> Clone for Constraint<'tree>
Source§fn clone(&self) -> Constraint<'tree>
fn clone(&self) -> Constraint<'tree>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tree> Debug for Constraint<'tree>
impl<'tree> Debug for Constraint<'tree>
impl<'tree> Eq for Constraint<'tree>
Source§impl<'tree> FromNode<'tree> for Constraint<'tree>
impl<'tree> FromNode<'tree> for Constraint<'tree>
Source§impl<'tree> PartialEq for Constraint<'tree>
impl<'tree> PartialEq for Constraint<'tree>
Source§impl Spanned for Constraint<'_>
impl Spanned for Constraint<'_>
impl<'tree> StructuralPartialEq for Constraint<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for Constraint<'tree>
impl<'tree> RefUnwindSafe for Constraint<'tree>
impl<'tree> Send for Constraint<'tree>
impl<'tree> Sync for Constraint<'tree>
impl<'tree> Unpin for Constraint<'tree>
impl<'tree> UnsafeUnpin for Constraint<'tree>
impl<'tree> UnwindSafe for Constraint<'tree>
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