Struct egg::SymbolLang [−][src]
Expand description
A simple language used for testing.
Fields
op: Symbol
The operator for an enode
children: Vec<Id>
The enode’s children Id
s
Implementations
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 RefUnwindSafe for SymbolLang
impl Send for SymbolLang
impl Sync for SymbolLang
impl Unpin for SymbolLang
impl UnwindSafe for SymbolLang
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.