pub struct F(/* private fields */);Expand description
Represents an uninterpreted function symbol with a given name.
Implementations§
Source§impl F
impl F
Sourcepub fn app<T: FApp>(self, terms: Vec<T>) -> T
pub fn app<T: FApp>(self, terms: Vec<T>) -> T
Applies the receiver on a list of terms. The length of terms must be equal to
the (assumed) arity of the function.
Note: the definition of F does not impose any restrictions on the
arity of function symbols. The user is expected to assume the arity of the function.
Sourcepub fn app2<T: FApp>(self, first: T, second: T) -> T
pub fn app2<T: FApp>(self, first: T, second: T) -> T
Applies the (binary) receiver on two terms.
Sourcepub fn app3<T: FApp>(self, first: T, second: T, third: T) -> T
pub fn app3<T: FApp>(self, first: T, second: T, third: T) -> T
Applies the (ternary) receiver on three terms.
Trait Implementations§
Source§impl Ord for F
impl Ord for F
Source§impl PartialOrd for F
impl PartialOrd for F
impl Eq for F
impl StructuralPartialEq for F
Auto Trait Implementations§
impl Freeze for F
impl RefUnwindSafe for F
impl Send for F
impl Sync for F
impl Unpin for F
impl UnsafeUnpin for F
impl UnwindSafe for F
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