pub trait Substitutor {
// Required method
fn get(&self, kw: &str) -> Option<String>;
// Provided methods
fn also<L: Into<Subst>>(&self, xl: L) -> ExtendedSubst<Self, Subst>
where Self: Clone + Sized { ... }
fn subst(&self, s: &str) -> Result<String, AE> { ... }
fn ss(&self, s: &str) -> Result<Vec<String>, AE> { ... }
fn gss(&self, s: &str) -> Result<Vec<String>, AE> { ... }
}Required Methods§
Provided Methods§
fn also<L: Into<Subst>>(&self, xl: L) -> ExtendedSubst<Self, Subst>
fn subst(&self, s: &str) -> Result<String, AE>
fn ss(&self, s: &str) -> Result<Vec<String>, AE>
fn gss(&self, s: &str) -> Result<Vec<String>, AE>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".