pub struct CacheEntry {
pub dep_versions: HashMap<String, u64>,
pub result: Value,
pub computed_for_item: Option<usize>,
}Expand description
A cached evaluation result with the specific dependency versions it was evaluated against
Fields§
§dep_versions: HashMap<String, u64>§result: Value§computed_for_item: Option<usize>The active_item_index this entry was computed under.
None = computed during main-form evaluation (safe to reuse across all items
provided the dep versions match). Some(idx) = computed for a specific item;
Tier-2 reuse is restricted to entries whose deps are entirely $params-scoped.
Trait Implementations§
Source§impl Clone for CacheEntry
impl Clone for CacheEntry
Source§fn clone(&self) -> CacheEntry
fn clone(&self) -> CacheEntry
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 CacheEntry
impl RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnsafeUnpin for CacheEntry
impl UnwindSafe for CacheEntry
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