Skip to main content

ClassValue

Trait ClassValue 

Source
pub trait ClassValue {
    // Required method
    fn push_class(self, out: &mut String, sheets: &mut Vec<&'static Stylesheet>);
}
Expand description

Values accepted by class.

Required Methods§

Source

fn push_class(self, out: &mut String, sheets: &mut Vec<&'static Stylesheet>)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ClassValue for &String

Source§

fn push_class(self, out: &mut String, _: &mut Vec<&'static Stylesheet>)

Source§

impl ClassValue for &str

Source§

fn push_class(self, out: &mut String, _: &mut Vec<&'static Stylesheet>)

Source§

impl ClassValue for String

Source§

fn push_class(self, out: &mut String, _: &mut Vec<&'static Stylesheet>)

Source§

impl<T, const N: usize> ClassValue for [T; N]
where T: ClassValue,

Source§

fn push_class(self, out: &mut String, sheets: &mut Vec<&'static Stylesheet>)

Source§

impl<T> ClassValue for (T, bool)
where T: ClassValue,

(value, condition) – include value only when condition is true.

Source§

fn push_class(self, out: &mut String, sheets: &mut Vec<&'static Stylesheet>)

Source§

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

Source§

fn push_class(self, out: &mut String, sheets: &mut Vec<&'static Stylesheet>)

Source§

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

Source§

fn push_class(self, out: &mut String, sheets: &mut Vec<&'static Stylesheet>)

Implementors§