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
sourceimpl 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
sourceimpl Clone for StandardValue
impl Clone for StandardValue
sourcefn clone(&self) -> StandardValue
fn clone(&self) -> StandardValue
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 moresourceimpl Debug for StandardValue
impl Debug for StandardValue
sourceimpl Display for StandardValue
impl Display for StandardValue
sourceimpl From<&str> for StandardValue
impl From<&str> for StandardValue
sourceimpl From<String> for StandardValue
impl From<String> for StandardValue
sourceimpl From<TailwindArbitrary> for StandardValue
impl From<TailwindArbitrary> for StandardValue
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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