Skip to main content

Substitutor

Trait Substitutor 

Source
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§

Source

fn get(&self, kw: &str) -> Option<String>

Provided Methods§

Source

fn also<L: Into<Subst>>(&self, xl: L) -> ExtendedSubst<Self, Subst>
where Self: Clone + Sized,

Source

fn subst(&self, s: &str) -> Result<String, AE>

Source

fn ss(&self, s: &str) -> Result<Vec<String>, AE>

Source

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".

Implementors§