Struct tailwind_css::TailwindArbitrary
source · [−]pub struct TailwindArbitrary { /* private fields */ }
Implementations
sourceimpl TailwindArbitrary
impl TailwindArbitrary
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub fn as_str(&self) -> &str
pub fn as_integer<T>(&self) -> Result<T> where
T: FromStr,
pub fn as_float(&self) -> Result<f32>
pub fn as_fraction(&self) -> Result<(usize, usize)>
pub fn as_length(&self) -> Result<LengthUnit>
pub fn as_color(&self) -> Result<Srgb>
Trait Implementations
sourceimpl Clone for TailwindArbitrary
impl Clone for TailwindArbitrary
sourcefn clone(&self) -> TailwindArbitrary
fn clone(&self) -> TailwindArbitrary
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TailwindArbitrary
impl Debug for TailwindArbitrary
sourceimpl Display for TailwindArbitrary
impl Display for TailwindArbitrary
Auto Trait Implementations
impl RefUnwindSafe for TailwindArbitrary
impl Send for TailwindArbitrary
impl Sync for TailwindArbitrary
impl Unpin for TailwindArbitrary
impl UnwindSafe for TailwindArbitrary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more