diffusion_rs_common::nn::var_builder

Trait Renamer

source
pub trait Renamer {
    // Required method
    fn rename(&self, v: &str) -> Cow<'_, str>;
}
Expand description

This traits specifies a way to rename the queried names into names that are stored in an inner VarBuilder.

Required Methods§

source

fn rename(&self, v: &str) -> Cow<'_, str>

This is applied to the name obtained by a name call and the resulting name is passed to the inner VarBuilder.

Implementations on Foreign Types§

source§

impl Renamer for Box<dyn Fn(&str) -> String + Sync + Send>

source§

fn rename(&self, v: &str) -> Cow<'_, str>

Implementors§