ArbitraryValueUtilities

Trait ArbitraryValueUtilities 

Source
pub trait ArbitraryValueUtilities {
Show 19 methods // Required methods fn arbitrary_value( self, property: impl Into<String>, value: impl Into<String>, ) -> Self; fn w_arbitrary(self, value: impl Into<String>) -> Self; fn h_arbitrary(self, value: impl Into<String>) -> Self; fn p_arbitrary(self, value: impl Into<String>) -> Self; fn m_arbitrary(self, value: impl Into<String>) -> Self; fn bg_arbitrary(self, value: impl Into<String>) -> Self; fn text_arbitrary(self, value: impl Into<String>) -> Self; fn border_arbitrary(self, value: impl Into<String>) -> Self; fn text_size_arbitrary(self, value: impl Into<String>) -> Self; fn leading_arbitrary(self, value: impl Into<String>) -> Self; fn tracking_arbitrary(self, value: impl Into<String>) -> Self; fn rounded_arbitrary(self, value: impl Into<String>) -> Self; fn shadow_arbitrary(self, value: impl Into<String>) -> Self; fn opacity_arbitrary(self, value: impl Into<String>) -> Self; fn z_arbitrary(self, value: impl Into<String>) -> Self; fn top_arbitrary(self, value: impl Into<String>) -> Self; fn right_arbitrary(self, value: impl Into<String>) -> Self; fn bottom_arbitrary(self, value: impl Into<String>) -> Self; fn left_arbitrary(self, value: impl Into<String>) -> Self;
}
Expand description

Trait for adding arbitrary value utilities to a class builder

Required Methods§

Source

fn arbitrary_value( self, property: impl Into<String>, value: impl Into<String>, ) -> Self

Add an arbitrary value class

Source

fn w_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary width

Source

fn h_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary height

Source

fn p_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary padding

Source

fn m_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary margin

Source

fn bg_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary background color

Source

fn text_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary text color

Source

fn border_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary border color

Source

fn text_size_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary font size

Source

fn leading_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary line height

Source

fn tracking_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary letter spacing

Source

fn rounded_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary border radius

Source

fn shadow_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary shadow

Source

fn opacity_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary opacity

Source

fn z_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary z-index

Source

fn top_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary top position

Source

fn right_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary right position

Source

fn bottom_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary bottom position

Source

fn left_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary left position

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§