Skip to main content

ScopedDefEqCache

Struct ScopedDefEqCache 

Source
pub struct ScopedDefEqCache<'call> { /* private fields */ }
Expand description

DefEqCache branded with the lifetime of ONE outermost kernel call. See DefEqCache::scoped.

Implementations§

Source§

impl ScopedDefEqCache<'_>

Source

pub fn get(&mut self, a: TermId, b: TermId) -> Option<bool>

What was decided about this pair, in either order.

Source

pub fn insert(&mut self, a: TermId, b: TermId, equal: bool)

Record a decision; two answers for one pair is caught here.

Source

pub fn len(&self) -> usize

How many pairs have been decided.

Source

pub fn is_empty(&self) -> bool

Whether nothing has been decided.

Source

pub fn hits(&self) -> u64

Lookups answered from the cache.

Source

pub fn misses(&self) -> u64

Lookups that had to be decided.

Auto Trait Implementations§

§

impl<'call> Freeze for ScopedDefEqCache<'call>

§

impl<'call> RefUnwindSafe for ScopedDefEqCache<'call>

§

impl<'call> !Send for ScopedDefEqCache<'call>

§

impl<'call> !Sync for ScopedDefEqCache<'call>

§

impl<'call> Unpin for ScopedDefEqCache<'call>

§

impl<'call> UnsafeUnpin for ScopedDefEqCache<'call>

§

impl<'call> UnwindSafe for ScopedDefEqCache<'call>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.