pub struct CSSInjector { /* private fields */ }Expand description
CSS injector for base, components, and utilities
Implementations§
Source§impl CSSInjector
impl CSSInjector
Sourcepub fn inject_base(&self, css: &str) -> Result<String, TailwindProcessorError>
pub fn inject_base(&self, css: &str) -> Result<String, TailwindProcessorError>
Inject base styles
Sourcepub fn inject_components(
&self,
css: &str,
) -> Result<String, TailwindProcessorError>
pub fn inject_components( &self, css: &str, ) -> Result<String, TailwindProcessorError>
Inject component styles
Sourcepub fn inject_utilities(
&self,
css: &str,
) -> Result<String, TailwindProcessorError>
pub fn inject_utilities( &self, css: &str, ) -> Result<String, TailwindProcessorError>
Inject utility styles
Auto Trait Implementations§
impl Freeze for CSSInjector
impl RefUnwindSafe for CSSInjector
impl Send for CSSInjector
impl Sync for CSSInjector
impl Unpin for CSSInjector
impl UnwindSafe for CSSInjector
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