pub enum Term<C, V> {
C(C, Args<Term<C, V>>),
V(V),
}
Expand description
First-order logic term.
Variants§
Implementations§
source§impl<C, V> Term<C, V>
impl<C, V> Term<C, V>
sourcepub fn map_constants<D>(self, f: &mut impl FnMut(C) -> D) -> Term<D, V>
pub fn map_constants<D>(self, f: &mut impl FnMut(C) -> D) -> Term<D, V>
Apply function to the constants of the term.
sourcepub fn map_vars<W>(self, f: &mut impl FnMut(V) -> Term<C, W>) -> Term<C, W>
pub fn map_vars<W>(self, f: &mut impl FnMut(V) -> Term<C, W>) -> Term<C, W>
Apply function to the variables of the term.
Trait Implementations§
source§impl<C: PartialEq, V: PartialEq> PartialEq<Term<C, V>> for Term<C, V>
impl<C: PartialEq, V: PartialEq> PartialEq<Term<C, V>> for Term<C, V>
impl<C: Eq, V: Eq> Eq for Term<C, V>
impl<C, V> StructuralEq for Term<C, V>
impl<C, V> StructuralPartialEq for Term<C, V>
Auto Trait Implementations§
impl<C, V> RefUnwindSafe for Term<C, V>where C: RefUnwindSafe, V: RefUnwindSafe,
impl<C, V> Send for Term<C, V>where C: Send, V: Send,
impl<C, V> Sync for Term<C, V>where C: Sync, V: Sync,
impl<C, V> Unpin for Term<C, V>where C: Unpin, V: Unpin,
impl<C, V> UnwindSafe for Term<C, V>where C: UnwindSafe, V: UnwindSafe,
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