(mut self, cache: impl Into<Option<StylesheetCache>>)
| 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] |
no outgoing calls