Skip to main content

IsColorSchemeValue

Trait IsColorSchemeValue 

Source
trait IsColorSchemeValue {
    // Required method
    fn is_color_scheme(&self) -> bool;
}
Expand description

Trait to make it easier to make sure all callers lowercase to ASCII before comparing to the color-scheme value. Otherwise it is easy to miss one usage and compare case-sensitively.

Required Methods§

Implementations on Foreign Types§

Source§

impl<T: AsRef<str>> IsColorSchemeValue for Option<T>

Implementors§