pub enum CacheCount {
Reported(Tokens),
Unreported,
}Expand description
One cache count as a provider reported it: a number, or nothing at all.
A provider that never reports its cache and one that reports a zero
hit are different facts to the User, so the two do not share a value
(crates/kernel/spec/Model.lean D36). A stored row spells
Unreported by leaving the key out; an absent key or null reads
back as Unreported, a present 0 as Reported(0).
Variants§
Implementations§
Source§impl CacheCount
impl CacheCount
Trait Implementations§
Source§impl Clone for CacheCount
impl Clone for CacheCount
impl Copy for CacheCount
Source§impl Debug for CacheCount
impl Debug for CacheCount
Source§impl Default for CacheCount
impl Default for CacheCount
impl Eq for CacheCount
Source§impl PartialEq for CacheCount
impl PartialEq for CacheCount
impl StructuralPartialEq for CacheCount
Auto Trait Implementations§
impl Freeze for CacheCount
impl RefUnwindSafe for CacheCount
impl Send for CacheCount
impl Sync for CacheCount
impl Unpin for CacheCount
impl UnsafeUnpin for CacheCount
impl UnwindSafe for CacheCount
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