pub struct ByteLimit(/* private fields */);Expand description
Nonzero cache-size limit in bytes.
Implementations§
Trait Implementations§
impl Copy for ByteLimit
impl Eq for ByteLimit
Source§impl From<ByteLimit> for NonZeroU64
impl From<ByteLimit> for NonZeroU64
Source§impl From<NonZero<u64>> for ByteLimit
impl From<NonZero<u64>> for ByteLimit
Source§fn from(value: NonZeroU64) -> Self
fn from(value: NonZeroU64) -> Self
Converts to this type from the input type.
Source§impl Ord for ByteLimit
impl Ord for ByteLimit
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 PartialOrd for ByteLimit
impl PartialOrd for ByteLimit
impl StructuralPartialEq for ByteLimit
Auto Trait Implementations§
impl Freeze for ByteLimit
impl RefUnwindSafe for ByteLimit
impl Send for ByteLimit
impl Sync for ByteLimit
impl Unpin for ByteLimit
impl UnsafeUnpin for ByteLimit
impl UnwindSafe for ByteLimit
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