Trait Substitution
razor_fol::transform
pub trait Substitution { fn apply(&self, v: &V) -> Term; }
Is the trait of types that map variables to terms.
fn apply(&self, v: &V) -> Term
Maps v to a Term.
v
Term
impl<'_> Substitution for HashMap<&'_ V, Term>
Any map from V to Term is a substitution.
V
impl<F> Substitution for F where F: Fn(&V) -> Term,
Any function from V to Term is a substitution.