MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / cache

Method cache

css-inline/src/lib.rs:402–409  ·  view source on GitHub ↗
(mut self, cache: impl Into<Option<StylesheetCache>>)

Source from the content-addressed store, hash-verified

400 #[must_use]
401 #[cfg(feature = "stylesheet-cache")]
402 pub fn cache(mut self, cache: impl Into<Option<StylesheetCache>>) -> Self {
403 if let Some(cache) = cache.into() {
404 self.cache = Some(std::sync::Mutex::new(cache));
405 } else {
406 self.cache = None;
407 }
408 self
409 }
410
411 /// Set additional CSS to inline.
412 #[must_use]

Callers 3

test_cacheFunction · 0.80
test_disable_cacheFunction · 0.80
build_inlinerFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_cacheFunction · 0.64
test_disable_cacheFunction · 0.64