ModernCssFeaturesUtilities

Trait ModernCssFeaturesUtilities 

Source
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§

Source

fn layer_base(self) -> Self

Set cascade layer to base

Source

fn layer_components(self) -> Self

Set cascade layer to components

Source

fn layer_utilities(self) -> Self

Set cascade layer to utilities

Source

fn layer_custom(self, name: &str) -> Self

Set cascade layer with custom name

Source

fn layer_custom_value(self, layer: CascadeLayer) -> Self

Set cascade layer with custom value

Source

fn custom_property(self, name: &str, _value: &str) -> Self

Set custom property with name and value

Source

fn custom_property_value(self, property: CustomProperty) -> Self

Set custom property with custom value

Source

fn container_small(self) -> Self

Set container query to small

Source

fn container_medium(self) -> Self

Set container query to medium

Source

fn container_large(self) -> Self

Set container query to large

Source

fn container_extra_large(self) -> Self

Set container query to extra large

Source

fn container_custom(self, size: &str) -> Self

Set container query with custom size

Source

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.

Implementors§