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(&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
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
sourceimpl From<&'_ TailwindArbitrary> for TailwindArbitrary
impl From<&'_ TailwindArbitrary> for TailwindArbitrary
sourceimpl From<&'_ TailwindArbitrary> for UnitValue
impl From<&'_ TailwindArbitrary> for UnitValue
sourcefn from(a: &TailwindArbitrary) -> Self
fn from(a: &TailwindArbitrary) -> Self
Performs the conversion.
sourceimpl From<&'_ str> for TailwindArbitrary
impl From<&'_ str> for TailwindArbitrary
sourceimpl From<TailwindArbitrary> for StandardValue
impl From<TailwindArbitrary> for StandardValue
sourcefn from(kind: TailwindArbitrary) -> Self
fn from(kind: TailwindArbitrary) -> Self
Performs the conversion.
sourceimpl From<TailwindArbitrary> for UnitValue
impl From<TailwindArbitrary> for UnitValue
sourcefn from(a: TailwindArbitrary) -> Self
fn from(a: TailwindArbitrary) -> Self
Performs the conversion.
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 · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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