Struct polar_core::terms::Operation[][src]

pub struct Operation {
    pub operator: Operator,
    pub args: TermList,
}

Fields

operator: Operatorargs: TermList

Implementations

impl Operation[src]

pub fn variables(&self) -> Vec<Symbol>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

Construct & return a set of symbols that occur in this operation.

pub fn ground(&self, var: Symbol, value: Term) -> Option<Self>[src]

Replace var with a ground (non-variable) value. Checks for consistent unifications along the way: if everything’s fine, returns Some(grounded_term), but if an inconsistent ground (anti-)unification is detected, return None.

pub fn merge_constraints(&mut self, other: Self)[src]

Augment our constraints with those on other.

Invariant: self and other are ANDs

pub fn invert(&self) -> Operation[src]

pub fn constraints(&self) -> Vec<Operation>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn add_constraint(&mut self, o: Operation)[src]

pub fn into_term(self) -> Term[src]

pub fn clone_with_constraints(&self, constraints: Vec<Operation>) -> Self[src]

pub fn clone_with_new_constraint(&self, constraint: Term) -> Self[src]

pub fn mirror(&self) -> Self[src]

Trait Implementations

impl Clone for Operation[src]

impl Debug for Operation[src]

impl<'de> Deserialize<'de> for Operation[src]

impl Eq for Operation[src]

impl From<Operation> for TestHelper<Value>[src]

impl Hash for Operation[src]

impl PartialEq<Operation> for Operation[src]

impl Serialize for Operation[src]

impl StructuralEq for Operation[src]

impl StructuralPartialEq for Operation[src]

impl ToPolarString for Operation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.