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§
Sourcefn arbitrary_value(
self,
property: impl Into<String>,
value: impl Into<String>,
) -> Self
fn arbitrary_value( self, property: impl Into<String>, value: impl Into<String>, ) -> Self
Add an arbitrary value class
Sourcefn w_arbitrary(self, value: impl Into<String>) -> Self
fn w_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary width
Sourcefn h_arbitrary(self, value: impl Into<String>) -> Self
fn h_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary height
Sourcefn p_arbitrary(self, value: impl Into<String>) -> Self
fn p_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary padding
Sourcefn m_arbitrary(self, value: impl Into<String>) -> Self
fn m_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary margin
Sourcefn bg_arbitrary(self, value: impl Into<String>) -> Self
fn bg_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary background color
Sourcefn text_arbitrary(self, value: impl Into<String>) -> Self
fn text_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary text color
Sourcefn border_arbitrary(self, value: impl Into<String>) -> Self
fn border_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary border color
Sourcefn text_size_arbitrary(self, value: impl Into<String>) -> Self
fn text_size_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary font size
Sourcefn leading_arbitrary(self, value: impl Into<String>) -> Self
fn leading_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary line height
Sourcefn tracking_arbitrary(self, value: impl Into<String>) -> Self
fn tracking_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary letter spacing
Sourcefn rounded_arbitrary(self, value: impl Into<String>) -> Self
fn rounded_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary border radius
Sourcefn shadow_arbitrary(self, value: impl Into<String>) -> Self
fn shadow_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary shadow
Sourcefn opacity_arbitrary(self, value: impl Into<String>) -> Self
fn opacity_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary opacity
Sourcefn z_arbitrary(self, value: impl Into<String>) -> Self
fn z_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary z-index
Sourcefn top_arbitrary(self, value: impl Into<String>) -> Self
fn top_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary top position
Sourcefn right_arbitrary(self, value: impl Into<String>) -> Self
fn right_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary right position
Sourcefn bottom_arbitrary(self, value: impl Into<String>) -> Self
fn bottom_arbitrary(self, value: impl Into<String>) -> Self
Add arbitrary bottom position
Sourcefn left_arbitrary(self, value: impl Into<String>) -> Self
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.