pub struct CacheCapacity(/* private fields */);Expand description
A non-zero cache capacity
Ensures caches track at least 1 item
Implementations§
Source§impl CacheCapacity
impl CacheCapacity
Source§impl CacheCapacity
impl CacheCapacity
Trait Implementations§
Source§impl Clone for CacheCapacity
impl Clone for CacheCapacity
Source§fn clone(&self) -> CacheCapacity
fn clone(&self) -> CacheCapacity
Returns a duplicate of the value. Read more
1.0.0 · 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 CacheCapacity
impl Debug for CacheCapacity
Source§impl<'de> Deserialize<'de> for CacheCapacity
impl<'de> Deserialize<'de> for CacheCapacity
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CacheCapacity
impl Display for CacheCapacity
Source§impl From<CacheCapacity> for usize
impl From<CacheCapacity> for usize
Source§fn from(val: CacheCapacity) -> Self
fn from(val: CacheCapacity) -> Self
Converts to this type from the input type.
Source§impl FromStr for CacheCapacity
impl FromStr for CacheCapacity
Source§impl Hash for CacheCapacity
impl Hash for CacheCapacity
Source§impl Ord for CacheCapacity
impl Ord for CacheCapacity
Source§impl PartialEq for CacheCapacity
impl PartialEq for CacheCapacity
Source§impl PartialOrd for CacheCapacity
impl PartialOrd for CacheCapacity
Source§impl Serialize for CacheCapacity
impl Serialize for CacheCapacity
impl Copy for CacheCapacity
impl Eq for CacheCapacity
impl StructuralPartialEq for CacheCapacity
Auto Trait Implementations§
impl Freeze for CacheCapacity
impl RefUnwindSafe for CacheCapacity
impl Send for CacheCapacity
impl Sync for CacheCapacity
impl Unpin for CacheCapacity
impl UnwindSafe for CacheCapacity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.