pub struct TailwindArbitrary { /* private fields */ }
Implementations§
Source§impl 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(&self) -> Result<i32>
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_length_or_fraction(&self) -> Result<LengthUnit>
pub fn as_angle(&self) -> Result<LengthUnit>
pub fn as_color(&self) -> Result<Srgb>
Trait Implementations§
Source§impl Clone for TailwindArbitrary
impl Clone for TailwindArbitrary
Source§fn clone(&self) -> TailwindArbitrary
fn clone(&self) -> TailwindArbitrary
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TailwindArbitrary
impl Debug for TailwindArbitrary
Source§impl Display for TailwindArbitrary
impl Display for TailwindArbitrary
Source§impl From<&TailwindArbitrary> for TailwindArbitrary
impl From<&TailwindArbitrary> for TailwindArbitrary
Source§impl From<&TailwindArbitrary> for UnitValue
impl From<&TailwindArbitrary> for UnitValue
Source§fn from(a: &TailwindArbitrary) -> Self
fn from(a: &TailwindArbitrary) -> Self
Converts to this type from the input type.
Source§impl From<&str> for TailwindArbitrary
impl From<&str> for TailwindArbitrary
Source§impl From<TailwindArbitrary> for StandardValue
impl From<TailwindArbitrary> for StandardValue
Source§fn from(kind: TailwindArbitrary) -> Self
fn from(kind: TailwindArbitrary) -> Self
Converts to this type from the input type.
Source§impl From<TailwindArbitrary> for UnitValue
impl From<TailwindArbitrary> for UnitValue
Source§fn from(a: TailwindArbitrary) -> Self
fn from(a: TailwindArbitrary) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TailwindArbitrary
impl RefUnwindSafe for TailwindArbitrary
impl Send for TailwindArbitrary
impl Sync for TailwindArbitrary
impl Unpin for TailwindArbitrary
impl UnwindSafe for TailwindArbitrary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more