pub struct CongrLemmaCache { /* private fields */ }Expand description
Cache for congruence lemmas to avoid regenerating them.
Implementations§
Source§impl CongrLemmaCache
impl CongrLemmaCache
Sourcepub fn get(&self, name: &Name, num_args: usize) -> Option<&CongruenceTheorem>
pub fn get(&self, name: &Name, num_args: usize) -> Option<&CongruenceTheorem>
Look up a cached lemma.
Sourcepub fn insert(&mut self, thm: CongruenceTheorem)
pub fn insert(&mut self, thm: CongruenceTheorem)
Insert a lemma into the cache.
Sourcepub fn get_or_compute(
&mut self,
name: Name,
num_args: usize,
) -> &CongruenceTheorem
pub fn get_or_compute( &mut self, name: Name, num_args: usize, ) -> &CongruenceTheorem
Get or compute a basic congruence theorem.
Trait Implementations§
Source§impl Debug for CongrLemmaCache
impl Debug for CongrLemmaCache
Source§impl Default for CongrLemmaCache
impl Default for CongrLemmaCache
Source§fn default() -> CongrLemmaCache
fn default() -> CongrLemmaCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CongrLemmaCache
impl RefUnwindSafe for CongrLemmaCache
impl Send for CongrLemmaCache
impl Sync for CongrLemmaCache
impl Unpin for CongrLemmaCache
impl UnsafeUnpin for CongrLemmaCache
impl UnwindSafe for CongrLemmaCache
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