pub struct TailwindProcessor { /* private fields */ }Expand description
Main processor for Tailwind CSS directives
Implementations§
Source§impl TailwindProcessor
impl TailwindProcessor
Sourcepub fn with_config(config: TailwindConfig) -> Self
pub fn with_config(config: TailwindConfig) -> Self
Create a new TailwindProcessor with custom configuration
Sourcepub fn with_cache(config: TailwindConfig, cache: ProcessorCache) -> Self
pub fn with_cache(config: TailwindConfig, cache: ProcessorCache) -> Self
Create a new TailwindProcessor with cache
Sourcepub fn process_directives(
&mut self,
css: &str,
) -> Result<ProcessingResult, TailwindProcessorError>
pub fn process_directives( &mut self, css: &str, ) -> Result<ProcessingResult, TailwindProcessorError>
Process @tailwind directives in CSS
Sourcepub fn process_apply(
&mut self,
css: &str,
) -> Result<String, TailwindProcessorError>
pub fn process_apply( &mut self, css: &str, ) -> Result<String, TailwindProcessorError>
Process @apply directive
Sourcepub fn process_layer(
&mut self,
css: &str,
) -> Result<String, TailwindProcessorError>
pub fn process_layer( &mut self, css: &str, ) -> Result<String, TailwindProcessorError>
Process @layer directive
Auto Trait Implementations§
impl Freeze for TailwindProcessor
impl RefUnwindSafe for TailwindProcessor
impl Send for TailwindProcessor
impl Sync for TailwindProcessor
impl Unpin for TailwindProcessor
impl UnwindSafe for TailwindProcessor
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