pub struct SubtreeCache {
pub by_content: HashMap<u64, Arc<Node>>,
pub by_range: HashMap<(usize, usize), Arc<Node>>,
pub lru: VecDeque<u64>,
pub critical_symbols: HashMap<u64, SymbolPriority>,
pub max_size: usize,
}Expand description
Cache for reusable subtrees
Fields§
§by_content: HashMap<u64, Arc<Node>>Maps content hash to subtree for content-based reuse
by_range: HashMap<(usize, usize), Arc<Node>>Maps byte range to subtree for position-based reuse
lru: VecDeque<u64>LRU queue for cache eviction
critical_symbols: HashMap<u64, SymbolPriority>Critical symbols that should be preserved longer
max_size: usizeMaximum cache size
Trait Implementations§
Source§impl Clone for SubtreeCache
impl Clone for SubtreeCache
Source§fn clone(&self) -> SubtreeCache
fn clone(&self) -> SubtreeCache
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 moreSource§impl Debug for SubtreeCache
impl Debug for SubtreeCache
Source§impl Default for SubtreeCache
impl Default for SubtreeCache
Source§fn default() -> SubtreeCache
fn default() -> SubtreeCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubtreeCache
impl RefUnwindSafe for SubtreeCache
impl Send for SubtreeCache
impl Sync for SubtreeCache
impl Unpin for SubtreeCache
impl UnsafeUnpin for SubtreeCache
impl UnwindSafe for SubtreeCache
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