pub struct PostCSSEngine { /* private fields */ }Expand description
PostCSS processing engine
Implementations§
Source§impl PostCSSEngine
impl PostCSSEngine
Sourcepub fn new(config: PostCSSConfig) -> Result<Self>
pub fn new(config: PostCSSConfig) -> Result<Self>
Create a new PostCSS engine with configuration
Sourcepub async fn process_css(&self, input: &str) -> Result<ProcessedCSS>
pub async fn process_css(&self, input: &str) -> Result<ProcessedCSS>
Process CSS input through PostCSS pipeline
Sourcepub async fn get_metrics(&self) -> EngineMetrics
pub async fn get_metrics(&self) -> EngineMetrics
Get engine metrics
Sourcepub async fn clear_cache(&self)
pub async fn clear_cache(&self)
Clear cache
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PostCSSEngine
impl !RefUnwindSafe for PostCSSEngine
impl Send for PostCSSEngine
impl Sync for PostCSSEngine
impl Unpin for PostCSSEngine
impl !UnwindSafe for PostCSSEngine
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