Enum egg::ENodeOrVar [−][src]
pub enum ENodeOrVar<L> {
ENode(L),
Var(Var),
}
Expand description
The language of Pattern
s.
Variants
ENode(L)
An enode from the underlying Language
Var(Var)
Tuple Fields
0: Var
A pattern variable
Trait Implementations
Returns true if this enode matches another enode.
This should only consider the operator, not the children Id
s. Read more
Returns a mutable slice of the children of this e-node.
Runs a given function on each child Id
, allowing mutation of that Id
.
Runs a falliable function on each child, stopping if the function returns an error. Read more
Runs a given function to replace the children.
Creates a new enode with children determined by the given function.
Folds over the children, given an initial accumulator.
Returns true if the predicate is true on all children. Does not short circuit. Read more
Returns true if the predicate is true on any children. Does not short circuit. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<L> RefUnwindSafe for ENodeOrVar<L> where
L: RefUnwindSafe,
impl<L> Send for ENodeOrVar<L> where
L: Send,
impl<L> Sync for ENodeOrVar<L> where
L: Sync,
impl<L> Unpin for ENodeOrVar<L> where
L: Unpin,
impl<L> UnwindSafe for ENodeOrVar<L> where
L: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.