pub struct DefEqCache { /* private fields */ }Expand description
Symmetry-aware cache for definitional equality checks
Implementations§
Source§impl DefEqCache
impl DefEqCache
Sourcepub fn check_cache(
&mut self,
expr1: &SimplifiedExpr,
expr2: &SimplifiedExpr,
) -> Option<bool>
pub fn check_cache( &mut self, expr1: &SimplifiedExpr, expr2: &SimplifiedExpr, ) -> Option<bool>
Check if a definitional equality result is cached (symmetry-aware)
Sourcepub fn store_result(
&mut self,
expr1: &SimplifiedExpr,
expr2: &SimplifiedExpr,
result: bool,
)
pub fn store_result( &mut self, expr1: &SimplifiedExpr, expr2: &SimplifiedExpr, result: bool, )
Store a definitional equality result (symmetry-aware)
Auto Trait Implementations§
impl Freeze for DefEqCache
impl RefUnwindSafe for DefEqCache
impl Send for DefEqCache
impl Sync for DefEqCache
impl Unpin for DefEqCache
impl UnsafeUnpin for DefEqCache
impl UnwindSafe for DefEqCache
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