pub struct EntryLimit(/* private fields */);Expand description
Nonzero cache-entry limit.
Implementations§
Trait Implementations§
Source§impl Clone for EntryLimit
impl Clone for EntryLimit
Source§fn clone(&self) -> EntryLimit
fn clone(&self) -> EntryLimit
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 moreimpl Copy for EntryLimit
Source§impl Debug for EntryLimit
impl Debug for EntryLimit
impl Eq for EntryLimit
Source§impl From<EntryLimit> for NonZeroU64
impl From<EntryLimit> for NonZeroU64
Source§fn from(limit: EntryLimit) -> Self
fn from(limit: EntryLimit) -> Self
Converts to this type from the input type.
Source§impl From<EntryLimit> for u64
impl From<EntryLimit> for u64
Source§fn from(limit: EntryLimit) -> Self
fn from(limit: EntryLimit) -> Self
Converts to this type from the input type.
Source§impl From<NonZero<u64>> for EntryLimit
impl From<NonZero<u64>> for EntryLimit
Source§fn from(value: NonZeroU64) -> Self
fn from(value: NonZeroU64) -> Self
Converts to this type from the input type.
Source§impl Hash for EntryLimit
impl Hash for EntryLimit
Source§impl Ord for EntryLimit
impl Ord for EntryLimit
Source§fn cmp(&self, other: &EntryLimit) -> Ordering
fn cmp(&self, other: &EntryLimit) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EntryLimit
impl PartialEq for EntryLimit
Source§fn eq(&self, other: &EntryLimit) -> bool
fn eq(&self, other: &EntryLimit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EntryLimit
impl PartialOrd for EntryLimit
impl StructuralPartialEq for EntryLimit
Auto Trait Implementations§
impl Freeze for EntryLimit
impl RefUnwindSafe for EntryLimit
impl Send for EntryLimit
impl Sync for EntryLimit
impl Unpin for EntryLimit
impl UnsafeUnpin for EntryLimit
impl UnwindSafe for EntryLimit
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more