Enum term_rewriting::Context
[−]
[src]
pub enum Context { Hole, Variable(Variable), Application { op: Operator, args: Vec<Context>, }, }
Variants
Hole
An empty place in the Context
.
Variable(Variable)
A concrete but unspecified Context
(e.g. x
, y
)
Application
An Operator
applied to zero or more Context
s (e.g. (f(x, y)
, g()
)
Fields of Application
op: Operator | |
args: Vec<Context> |
Trait Implementations
impl Debug for Context
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Context
[src]
fn eq(&self, __arg_0: &Context) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Context) -> bool
[src]
This method tests for !=
.
impl Eq for Context
[src]
impl Hash for Context
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Context
[src]
fn clone(&self) -> Context
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more