pub struct Trie { /* private fields */ }Expand description
A Caching implementation as a trie of items stored in an arena.
Implementations§
Trait Implementations§
Source§impl Caching for Trie
impl Caching for Trie
Source§fn root_index(&mut self) -> Index
fn root_index(&mut self) -> Index
Index of the root entry.
Source§fn root(&self) -> Option<&CacheEntry>
fn root(&self) -> Option<&CacheEntry>
The root entry.
Source§fn insert(&mut self, path: &[usize], _cover: &Cover) -> Index
fn insert(&mut self, path: &[usize], _cover: &Cover) -> Index
Finds the entry of the subproblem, creating it if needed. The index is
New for an entry that has not been evaluated yet.Source§fn find(&self, path: &[usize], _cover: &Cover) -> Option<&CacheEntry>
fn find(&self, path: &[usize], _cover: &Cover) -> Option<&CacheEntry>
The entry of the subproblem, if cached.
Source§fn keyed_by_cover(&self) -> bool
fn keyed_by_cover(&self) -> bool
Whether lookups use
cover.Source§fn update_root(&mut self) -> Option<CacheEntryUpdater<'_>>
fn update_root(&mut self) -> Option<CacheEntryUpdater<'_>>
An updater for the root entry.
Source§fn update_node(&mut self, key: &CacheKey) -> Option<CacheEntryUpdater<'_>>
fn update_node(&mut self, key: &CacheKey) -> Option<CacheEntryUpdater<'_>>
An updater for the entry of
key.Auto Trait Implementations§
impl Freeze for Trie
impl RefUnwindSafe for Trie
impl Send for Trie
impl Sync for Trie
impl Unpin for Trie
impl UnsafeUnpin for Trie
impl UnwindSafe for Trie
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