pub struct ContractDeckCache { /* private fields */ }Expand description
Cached runtime contract deck keyed by a cheap registry generation marker.
Implementations§
Source§impl ContractDeckCache
impl ContractDeckCache
Sourcepub fn misses(&self) -> usize
pub fn misses(&self) -> usize
Number of times the deck was rebuilt for a new registry generation.
Sourcepub fn cached_card_count(&self) -> usize
pub fn cached_card_count(&self) -> usize
Number of cards currently held by the cached deck.
Sourcepub fn last_report(&self) -> &ContractQueryReport
pub fn last_report(&self) -> &ContractQueryReport
Facts recorded for the most recent query.
Trait Implementations§
Source§impl Clone for ContractDeckCache
impl Clone for ContractDeckCache
Source§fn clone(&self) -> ContractDeckCache
fn clone(&self) -> ContractDeckCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContractDeckCache
impl Debug for ContractDeckCache
Source§impl Default for ContractDeckCache
impl Default for ContractDeckCache
Source§fn default() -> ContractDeckCache
fn default() -> ContractDeckCache
Returns the “default value” for a type. Read more
impl Eq for ContractDeckCache
Source§impl PartialEq for ContractDeckCache
impl PartialEq for ContractDeckCache
impl StructuralPartialEq for ContractDeckCache
Auto Trait Implementations§
impl !RefUnwindSafe for ContractDeckCache
impl !UnwindSafe for ContractDeckCache
impl Freeze for ContractDeckCache
impl Send for ContractDeckCache
impl Sync for ContractDeckCache
impl Unpin for ContractDeckCache
impl UnsafeUnpin for ContractDeckCache
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.