pub struct ProcessingCache<T, B> { /* private fields */ }Expand description
Cache of processed contexts.
Pass one to
Process::process_full_with_cache.
Processing options and base URL are part of the key, so they may vary freely
between calls; the Loader is not, so a cache must not
outlive the loader it was populated against. One cache per document is the
natural unit.
Entries are never evicted, so the cache grows with the number of distinct
contexts processed through it. Self::clear releases them.
Implementations§
Source§impl<T, B> ProcessingCache<T, B>
impl<T, B> ProcessingCache<T, B>
Trait Implementations§
Auto Trait Implementations§
impl<T, B> !Freeze for ProcessingCache<T, B>
impl<T, B> !RefUnwindSafe for ProcessingCache<T, B>
impl<T, B> !UnwindSafe for ProcessingCache<T, B>
impl<T, B> Send for ProcessingCache<T, B>
impl<T, B> Sync for ProcessingCache<T, B>
impl<T, B> Unpin for ProcessingCache<T, B>
impl<T, B> UnsafeUnpin for ProcessingCache<T, B>
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.