pub trait Subst<V>: Sized {
// Required methods
fn is_var(&self) -> Option<SubstName<V>>;
fn subst(&self, var: &Name<V>, value: &V) -> Self;
// Provided method
fn subst_all(&self, subst_map: &HashMap<Name<V>, V>) -> Self
where V: Clone,
Self: Clone { ... }
}
Expand description
Trait for types that support substitution
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.