pub struct CacheValue(/* private fields */);Expand description
A cache value payload.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for CacheValue
impl AsRef<str> for CacheValue
Source§impl Clone for CacheValue
impl Clone for CacheValue
Source§fn clone(&self) -> CacheValue
fn clone(&self) -> CacheValue
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 CacheValue
impl Debug for CacheValue
Source§impl Default for CacheValue
impl Default for CacheValue
Source§fn default() -> CacheValue
fn default() -> CacheValue
Returns the “default value” for a type. Read more
Source§impl Display for CacheValue
impl Display for CacheValue
Source§impl From<&str> for CacheValue
impl From<&str> for CacheValue
Source§fn from(value: &str) -> CacheValue
fn from(value: &str) -> CacheValue
Converts to this type from the input type.
Source§impl From<String> for CacheValue
impl From<String> for CacheValue
Source§fn from(value: String) -> CacheValue
fn from(value: String) -> CacheValue
Converts to this type from the input type.
Source§impl Hash for CacheValue
impl Hash for CacheValue
Source§impl Ord for CacheValue
impl Ord for CacheValue
Source§fn cmp(&self, other: &CacheValue) -> Ordering
fn cmp(&self, other: &CacheValue) -> 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 CacheValue
impl PartialEq for CacheValue
Source§fn eq(&self, other: &CacheValue) -> bool
fn eq(&self, other: &CacheValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CacheValue
impl PartialOrd for CacheValue
impl Eq for CacheValue
impl StructuralPartialEq for CacheValue
Auto Trait Implementations§
impl Freeze for CacheValue
impl RefUnwindSafe for CacheValue
impl Send for CacheValue
impl Sync for CacheValue
impl Unpin for CacheValue
impl UnsafeUnpin for CacheValue
impl UnwindSafe for CacheValue
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