pub struct LitCache<G: DenseId, O: DenseId, V: DenseId, L: DenseId, const TRACK: bool = true> { /* private fields */ }Implementations§
Source§impl<G: DenseId + Hash, O: DenseId + Hash, V: DenseId + Hash, L: DenseId, const TRACK: bool> LitCache<G, O, V, L, TRACK>
impl<G: DenseId + Hash, O: DenseId + Hash, V: DenseId + Hash, L: DenseId, const TRACK: bool> LitCache<G, O, V, L, TRACK>
pub fn new() -> Self
pub fn len(&self) -> L
pub fn is_empty(&self) -> bool
pub fn get(&self, id: L) -> LitNode<G, O, V>
pub fn set(&mut self, id: L, node: LitNode<G, O, V>)
pub fn probe(&self, op: O, lit: V) -> Option<G>
pub fn insert(&mut self, global_id: G, op: O, lit: V) -> L
pub fn probe_or_insert( &mut self, global_id: G, op: O, lit: V, ) -> InsertResult<G, L>
pub fn mark(&mut self, shrink: ShrinkPolicy) -> CacheToken
pub fn restore(&mut self, token: CacheToken)
Trait Implementations§
Auto Trait Implementations§
impl<G, O, V, L, const TRACK: bool> Freeze for LitCache<G, O, V, L, TRACK>
impl<G, O, V, L, const TRACK: bool> RefUnwindSafe for LitCache<G, O, V, L, TRACK>where
Vec<LitNode<G, O, V>, L, InlineStore<LitNode<G, O, V>, L>, TRACK>: RefUnwindSafe,
HashMap<StoredKey<L>, (), PassthroughBuildHasher>: RefUnwindSafe,
impl<G, O, V, L, const TRACK: bool> Send for LitCache<G, O, V, L, TRACK>
impl<G, O, V, L, const TRACK: bool> Sync for LitCache<G, O, V, L, TRACK>
impl<G, O, V, L, const TRACK: bool> Unpin for LitCache<G, O, V, L, TRACK>
impl<G, O, V, L, const TRACK: bool> UnsafeUnpin for LitCache<G, O, V, L, TRACK>where
Vec<LitNode<G, O, V>, L, InlineStore<LitNode<G, O, V>, L>, TRACK>: UnsafeUnpin,
HashMap<StoredKey<L>, (), PassthroughBuildHasher>: UnsafeUnpin,
impl<G, O, V, L, const TRACK: bool> UnwindSafe for LitCache<G, O, V, L, TRACK>where
Vec<LitNode<G, O, V>, L, InlineStore<LitNode<G, O, V>, L>, TRACK>: UnwindSafe,
HashMap<StoredKey<L>, (), PassthroughBuildHasher>: UnwindSafe,
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