pub struct ProcessorCache { /* private fields */ }Expand description
Cache for processed directives
Implementations§
Source§impl ProcessorCache
impl ProcessorCache
Sourcepub fn get_cached_directive(&self, directive: &str) -> Option<&String>
pub fn get_cached_directive(&self, directive: &str) -> Option<&String>
Get cached directive
Sourcepub fn cache_directive(&mut self, directive: String, css: String)
pub fn cache_directive(&mut self, directive: String, css: String)
Cache directive
Sourcepub fn get_cached_apply(&self, class: &str) -> Option<&String>
pub fn get_cached_apply(&self, class: &str) -> Option<&String>
Get cached apply
Sourcepub fn cache_apply(&mut self, class: String, css: String)
pub fn cache_apply(&mut self, class: String, css: String)
Cache apply
Trait Implementations§
Source§impl Clone for ProcessorCache
impl Clone for ProcessorCache
Source§fn clone(&self) -> ProcessorCache
fn clone(&self) -> ProcessorCache
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProcessorCache
impl RefUnwindSafe for ProcessorCache
impl Send for ProcessorCache
impl Sync for ProcessorCache
impl Unpin for ProcessorCache
impl UnwindSafe for ProcessorCache
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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