Struct term_rewriting::RuleContext[][src]

pub struct RuleContext {
    pub lhs: Context,
    pub rhs: Vec<Context>,
}

A Rule with holes; a sort of Rule template.

Fields

Methods

impl RuleContext
[src]

A human-readable serialization of the RuleContext.

Get all the subcontexts and Places in a RuleContext.

All the Variables in a RuleContext.

All the Operators in a RuleContext.

Get a specific subcontext in a RuleContext.

Replace one subcontext with another in a RuleContext.

Convert a RuleContext to a Rule if possible.

Trait Implementations

impl Debug for RuleContext
[src]

Formats the value using the given formatter. Read more

impl Clone for RuleContext
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for RuleContext
[src]

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

This method tests for !=.

impl Eq for RuleContext
[src]

impl Hash for RuleContext
[src]

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

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

Auto Trait Implementations

impl Send for RuleContext

impl Sync for RuleContext