Trait Classnames

Source
pub trait Classnames {
    // Required method
    fn append_to(&self, string: &mut String);
}
Expand description

A trait for types to be used in classnames!.

Required Methods§

Source

fn append_to(&self, string: &mut String)

Appends the class to a string.

Implementations on Foreign Types§

Source§

impl Classnames for &str

Source§

fn append_to(&self, string: &mut String)

Source§

impl Classnames for &String

Source§

fn append_to(&self, string: &mut String)

Source§

impl Classnames for String

Source§

fn append_to(&self, string: &mut String)

Source§

impl<T: Classnames> Classnames for Option<T>

Source§

fn append_to(&self, string: &mut String)

Implementors§