pub struct Pred(pub String);Expand description
Represents a predicate symbol with a given name.
Tuple Fields§
§0: StringImplementations§
Source§impl Pred
impl Pred
Sourcepub fn app(self, terms: Vec<Term>) -> Formula
pub fn app(self, terms: Vec<Term>) -> Formula
Applies the receiver on a list of terms. The length of terms must be equal to
the (assumed) arity of the predicate.
Note: the definition of Pred does not impose any restrictions
on the arity of predicate symbols. The user is expected to assume the arity of the predicate.
Sourcepub fn app2(self, first: Term, second: Term) -> Formula
pub fn app2(self, first: Term, second: Term) -> Formula
Applies the (binary) receiver on two terms.
Sourcepub fn app3(self, first: Term, second: Term, third: Term) -> Formula
pub fn app3(self, first: Term, second: Term, third: Term) -> Formula
Applies the (ternary) receiver on three terms.
Trait Implementations§
Source§impl Ord for Pred
impl Ord for Pred
Source§impl PartialOrd for Pred
impl PartialOrd for Pred
impl Eq for Pred
impl StructuralPartialEq for Pred
Auto Trait Implementations§
impl Freeze for Pred
impl RefUnwindSafe for Pred
impl Send for Pred
impl Sync for Pred
impl Unpin for Pred
impl UnsafeUnpin for Pred
impl UnwindSafe for Pred
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more