pub struct MemoizeCache {
pub hit_count: u64,
pub miss_count: u64,
/* private fields */
}Fields§
§hit_count: u64§miss_count: u64Implementations§
Source§impl MemoizeCache
impl MemoizeCache
pub fn new() -> Self
pub const fn with_max_entries(self, n: usize) -> Self
pub const fn with_max_bytes(self, b: usize) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for MemoizeCache
impl Clone for MemoizeCache
Source§fn clone(&self) -> MemoizeCache
fn clone(&self) -> MemoizeCache
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 MemoizeCache
impl Debug for MemoizeCache
Auto Trait Implementations§
impl Freeze for MemoizeCache
impl RefUnwindSafe for MemoizeCache
impl Send for MemoizeCache
impl Sync for MemoizeCache
impl Unpin for MemoizeCache
impl UnsafeUnpin for MemoizeCache
impl UnwindSafe for MemoizeCache
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