pub struct DirectiveParser { /* private fields */ }Expand description
Directive parser for @tailwind, @apply, and @layer directives
Implementations§
Source§impl DirectiveParser
impl DirectiveParser
Sourcepub fn parse_tailwind_directives(
&self,
css: &str,
) -> Result<Vec<TailwindDirective>, TailwindProcessorError>
pub fn parse_tailwind_directives( &self, css: &str, ) -> Result<Vec<TailwindDirective>, TailwindProcessorError>
Parse @tailwind directives
Sourcepub fn parse_apply_directives(
&self,
css: &str,
) -> Result<Vec<ApplyDirective>, TailwindProcessorError>
pub fn parse_apply_directives( &self, css: &str, ) -> Result<Vec<ApplyDirective>, TailwindProcessorError>
Parse @apply directives
Sourcepub fn parse_layer_directives(
&self,
css: &str,
) -> Result<Vec<LayerDirective>, TailwindProcessorError>
pub fn parse_layer_directives( &self, css: &str, ) -> Result<Vec<LayerDirective>, TailwindProcessorError>
Parse @layer directives
Auto Trait Implementations§
impl Freeze for DirectiveParser
impl RefUnwindSafe for DirectiveParser
impl Send for DirectiveParser
impl Sync for DirectiveParser
impl Unpin for DirectiveParser
impl UnwindSafe for DirectiveParser
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> 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