pub trait ModernCssFeaturesUtilities {
Show 13 methods
// Required methods
fn layer_base(self) -> Self;
fn layer_components(self) -> Self;
fn layer_utilities(self) -> Self;
fn layer_custom(self, name: &str) -> Self;
fn layer_custom_value(self, layer: CascadeLayer) -> Self;
fn custom_property(self, name: &str, _value: &str) -> Self;
fn custom_property_value(self, property: CustomProperty) -> Self;
fn container_small(self) -> Self;
fn container_medium(self) -> Self;
fn container_large(self) -> Self;
fn container_extra_large(self) -> Self;
fn container_custom(self, size: &str) -> Self;
fn container_custom_value(self, query: ModernContainerQuery) -> Self;
}
Expand description
Trait for adding modern CSS features to ClassBuilder
Required Methods§
Sourcefn layer_base(self) -> Self
fn layer_base(self) -> Self
Set cascade layer to base
Sourcefn layer_components(self) -> Self
fn layer_components(self) -> Self
Set cascade layer to components
Sourcefn layer_utilities(self) -> Self
fn layer_utilities(self) -> Self
Set cascade layer to utilities
Sourcefn layer_custom(self, name: &str) -> Self
fn layer_custom(self, name: &str) -> Self
Set cascade layer with custom name
Sourcefn layer_custom_value(self, layer: CascadeLayer) -> Self
fn layer_custom_value(self, layer: CascadeLayer) -> Self
Set cascade layer with custom value
Sourcefn custom_property(self, name: &str, _value: &str) -> Self
fn custom_property(self, name: &str, _value: &str) -> Self
Set custom property with name and value
Sourcefn custom_property_value(self, property: CustomProperty) -> Self
fn custom_property_value(self, property: CustomProperty) -> Self
Set custom property with custom value
Sourcefn container_small(self) -> Self
fn container_small(self) -> Self
Set container query to small
Sourcefn container_medium(self) -> Self
fn container_medium(self) -> Self
Set container query to medium
Sourcefn container_large(self) -> Self
fn container_large(self) -> Self
Set container query to large
Sourcefn container_extra_large(self) -> Self
fn container_extra_large(self) -> Self
Set container query to extra large
Sourcefn container_custom(self, size: &str) -> Self
fn container_custom(self, size: &str) -> Self
Set container query with custom size
Sourcefn container_custom_value(self, query: ModernContainerQuery) -> Self
fn container_custom_value(self, query: ModernContainerQuery) -> Self
Set container query with custom value
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.