pub struct SimplifyCache(/* private fields */);Expand description
A reusable memo of solved linear MBAs.
Simplifying an expression solves many linear sub-MBAs; a SimplifyCache
remembers those solutions so that a caller simplifying many expressions — or
the same ones repeatedly across rounds of an analysis — pays for each distinct
linear solve once. Create one with SimplifyCache::new and hand it to
simplify_mba_cached. It is safe to share one across threads.
Implementations§
Source§impl SimplifyCache
impl SimplifyCache
Trait Implementations§
Source§impl Debug for SimplifyCache
impl Debug for SimplifyCache
Auto Trait Implementations§
impl !Freeze for SimplifyCache
impl RefUnwindSafe for SimplifyCache
impl Send for SimplifyCache
impl Sync for SimplifyCache
impl Unpin for SimplifyCache
impl UnsafeUnpin for SimplifyCache
impl UnwindSafe for SimplifyCache
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