pub type STerm = Term<String, String>;
Expand description
String term.
Aliased Type§
enum STerm {
C(String, Args<Term<String, String>>),
V(String),
}
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 From<DefinedTerm<'_>> for STerm
impl From<DefinedTerm<'_>> for STerm
source§fn from(tm: DefinedTerm<'_>) -> Self
fn from(tm: DefinedTerm<'_>) -> Self
Converts to this type from the input type.
source§impl From<DefinedTerm<'_>> for STerm
impl From<DefinedTerm<'_>> for STerm
source§fn from(tm: DefinedTerm<'_>) -> Self
fn from(tm: DefinedTerm<'_>) -> Self
Converts to this type from the input type.
source§impl From<FunctionTerm<'_>> for STerm
impl From<FunctionTerm<'_>> for STerm
source§fn from(tm: FunctionTerm<'_>) -> Self
fn from(tm: FunctionTerm<'_>) -> Self
Converts to this type from the input type.