pub struct TransformedDocumentCache { /* private fields */ }Expand description
In-memory transformed document cache for repeated browsing workflows.
Implementations§
Source§impl TransformedDocumentCache
impl TransformedDocumentCache
Sourcepub fn get(&self, key: &TransformCacheKey) -> Option<IndexDocument>
pub fn get(&self, key: &TransformCacheKey) -> Option<IndexDocument>
Returns the cached document for a matching key.
Sourcepub fn insert(&mut self, key: TransformCacheKey, document: IndexDocument)
pub fn insert(&mut self, key: TransformCacheKey, document: IndexDocument)
Stores a transformed document.
Trait Implementations§
Source§impl Clone for TransformedDocumentCache
impl Clone for TransformedDocumentCache
Source§fn clone(&self) -> TransformedDocumentCache
fn clone(&self) -> TransformedDocumentCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransformedDocumentCache
impl Debug for TransformedDocumentCache
Source§impl Default for TransformedDocumentCache
impl Default for TransformedDocumentCache
Source§fn default() -> TransformedDocumentCache
fn default() -> TransformedDocumentCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransformedDocumentCache
impl RefUnwindSafe for TransformedDocumentCache
impl Send for TransformedDocumentCache
impl Sync for TransformedDocumentCache
impl Unpin for TransformedDocumentCache
impl UnsafeUnpin for TransformedDocumentCache
impl UnwindSafe for TransformedDocumentCache
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