Struct polar_core::terms::Operation [−][src]
Fields
operator: Operatorargs: TermListImplementations
impl Operation[src]
pub fn variables(&self) -> Vec<Symbol>ⓘ[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>ⓘ[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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for Operation[src]
impl From<Operation> for TestHelper<Value>[src]
impl Hash for Operation[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Operation> for Operation[src]
impl Serialize for Operation[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for Operation[src]
impl StructuralPartialEq for Operation[src]
impl ToPolarString for Operation[src]
Auto Trait Implementations
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,