Enum tailwind_css::StandardValue
source · 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 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