Decoratable

Trait Decoratable 

Source
pub trait Decoratable {
    // Required method
    fn decorate(
        &self,
        decorators: &Vec<Box<dyn StringDecorator>>,
    ) -> Result<String, DecorationError>;
}

Required Methods§

Source

fn decorate( &self, decorators: &Vec<Box<dyn StringDecorator>>, ) -> Result<String, DecorationError>

Implementors§

Source§

impl<T> Decoratable for T
where T: ToString,