pub trait Subst: Sized {
    // Required method
    fn subst(&self, data: &SubstData) -> Result<Self>;
}
Expand description

Trait for variable substition: implement this trait to support substition in data structure.

Required Methods§

source

fn subst(&self, data: &SubstData) -> Result<Self>

Substitute the indicated variables by their values and leave the others untouched.

Implementations on Foreign Types§

source§

impl<K, V> Subst for IndexMap<K, V>where K: Clone + Eq + Hash, V: Subst,

source§

fn subst(&self, data: &SubstData) -> Result<IndexMap<K, V>>

source§

impl<T> Subst for Vec<T>where T: Subst,

source§

fn subst(&self, data: &SubstData) -> Result<Vec<T>>

source§

impl<T> Subst for Option<T>where T: Subst,

source§

fn subst(&self, data: &SubstData) -> Result<Option<T>>

Implementors§