Struct tailwind_parse::Literal
source · pub struct Literal<'a> {
pub cmd: Plugin,
pub value: Option<SubjectValue<'a>>,
pub span: Option<Span>,
}
Expand description
The core ‘rule’ of a tailwind directive.
Example: text-2xl
is a Plugin
with a value of 2xl
.
Fields
cmd: Plugin
value: Option<SubjectValue<'a>>
span: Option<Span>
Implementations
sourceimpl<'a> Literal<'a>
impl<'a> Literal<'a>
pub fn to_object_lit(
self,
_span: Span,
theme: &TailwindTheme<'_>
) -> Result<ObjectLit, LiteralConversionError<'a>>
Trait Implementations
sourceimpl<'a> PartialEq<Literal<'a>> for Literal<'a>
impl<'a> PartialEq<Literal<'a>> for Literal<'a>
impl<'a> Eq for Literal<'a>
impl<'a> StructuralEq for Literal<'a>
impl<'a> StructuralPartialEq for Literal<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Literal<'a>
impl<'a> Send for Literal<'a>
impl<'a> Sync for Literal<'a>
impl<'a> Unpin for Literal<'a>
impl<'a> UnwindSafe for Literal<'a>
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