pub trait CssNestingConvenience {
// Required methods
fn nested_hover(self, class: &str) -> Self;
fn nested_focus(self, class: &str) -> Self;
fn nested_active(self, class: &str) -> Self;
fn nested_first_child(self, class: &str) -> Self;
fn nested_last_child(self, class: &str) -> Self;
fn nested_sm(self, class: &str) -> Self;
fn nested_md(self, class: &str) -> Self;
fn nested_lg(self, class: &str) -> Self;
fn nested_dark(self, class: &str) -> Self;
fn nested_light(self, class: &str) -> Self;
}Expand description
Convenience methods for common nesting patterns
Required Methods§
Sourcefn nested_hover(self, class: &str) -> Self
fn nested_hover(self, class: &str) -> Self
Set nested hover class
Sourcefn nested_focus(self, class: &str) -> Self
fn nested_focus(self, class: &str) -> Self
Set nested focus class
Sourcefn nested_active(self, class: &str) -> Self
fn nested_active(self, class: &str) -> Self
Set nested active class
Sourcefn nested_first_child(self, class: &str) -> Self
fn nested_first_child(self, class: &str) -> Self
Set nested first child class
Sourcefn nested_last_child(self, class: &str) -> Self
fn nested_last_child(self, class: &str) -> Self
Set nested last child class
Sourcefn nested_dark(self, class: &str) -> Self
fn nested_dark(self, class: &str) -> Self
Set nested dark mode class
Sourcefn nested_light(self, class: &str) -> Self
fn nested_light(self, class: &str) -> Self
Set nested light mode class
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.