pub enum StandardValue {
Keyword(String),
Arbitrary(TailwindArbitrary),
}
Expand description
Used to represent those attributes that only have keywords
Variants§
Keyword(String)
Arbitrary(TailwindArbitrary)
Implementations§
Source§impl StandardValue
impl StandardValue
pub fn parser( id: &'static str, check_valid: &'static impl Fn(&str) -> bool, ) -> impl Fn(&[&str], &TailwindArbitrary) -> Result<Self>
pub fn parse_arbitrary(arbitrary: &TailwindArbitrary) -> Result<Self>
pub fn parse_keyword( pattern: &[&str], id: &str, checker: &'static impl Fn(&str) -> bool, ) -> Result<Self>
pub fn get_properties(&self) -> &str
pub fn get_value(&self) -> &str
pub fn write_class( &self, fmt: &mut Formatter<'_>, class: &str, special: fn(&mut Formatter<'_>, &str) -> Result, ) -> Result
Trait Implementations§
Source§impl Clone for StandardValue
impl Clone for StandardValue
Source§fn clone(&self) -> StandardValue
fn clone(&self) -> StandardValue
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 StandardValue
impl Debug for StandardValue
Source§impl Display for StandardValue
impl Display for StandardValue
Source§impl From<&str> for StandardValue
impl From<&str> for StandardValue
Source§impl From<String> for StandardValue
impl From<String> for StandardValue
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.
Auto Trait Implementations§
impl Freeze for StandardValue
impl RefUnwindSafe for StandardValue
impl Send for StandardValue
impl Sync for StandardValue
impl Unpin for StandardValue
impl UnwindSafe for StandardValue
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