ot_certs::template::subst

Trait Subst

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

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.

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 Option<T>
where T: Subst,

Source§

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

Source§

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

Source§

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

Implementors§