Enum term_rewriting::Context [] [src]

pub enum Context {
    Hole,
    Variable(Variable),
    Application {
        op: Operator,
        args: Vec<Context>,
    },
}

A first-order context: a Term that may have Holes.

Variants

An empty place in the Context.

A concrete but unspecified Context (e.g. x, y)

An Operator applied to zero or more Contexts (e.g. (f(x, y), g())

Fields of Application

Trait Implementations

impl Debug for Context
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Context
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Context
[src]

impl Hash for Context
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Context
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Term> for Context
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Context

impl Sync for Context