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§
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
impl ClassValue for &String
fn push_class(self, out: &mut String, _: &mut Vec<&'static Stylesheet>)
Source§impl ClassValue for &str
impl ClassValue for &str
fn push_class(self, out: &mut String, _: &mut Vec<&'static Stylesheet>)
Source§impl ClassValue for String
impl ClassValue for String
fn push_class(self, out: &mut String, _: &mut Vec<&'static Stylesheet>)
Source§impl<T, const N: usize> ClassValue for [T; N]where
T: ClassValue,
impl<T, const N: usize> ClassValue for [T; N]where
T: ClassValue,
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.
impl<T> ClassValue for (T, bool)where
T: ClassValue,
(value, condition) – include value only when condition is true.