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 more
sourceimpl Debug for StandardValue
impl Debug for StandardValue
sourceimpl Display for StandardValue
impl Display 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
Performs the conversion.
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 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