pub struct CacheLevel(/* private fields */);Expand description
Wrapper type for describing cache level in a human readable format, e.g. L3 cache = CacheLevel(3)
Implementations§
Trait Implementations§
Source§impl Clone for CacheLevel
impl Clone for CacheLevel
Source§fn clone(&self) -> CacheLevel
fn clone(&self) -> CacheLevel
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 CacheLevel
impl Debug for CacheLevel
Source§impl From<CacheLevel> for u32
impl From<CacheLevel> for u32
Source§fn from(value: CacheLevel) -> Self
fn from(value: CacheLevel) -> Self
Converts to this type from the input type.
Source§impl From<CacheLevel> for u64
impl From<CacheLevel> for u64
Source§fn from(value: CacheLevel) -> Self
fn from(value: CacheLevel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CacheLevel
impl PartialEq for CacheLevel
impl Copy for CacheLevel
impl Eq for CacheLevel
impl StructuralPartialEq for CacheLevel
Auto Trait Implementations§
impl Freeze for CacheLevel
impl RefUnwindSafe for CacheLevel
impl Send for CacheLevel
impl Sync for CacheLevel
impl Unpin for CacheLevel
impl UnsafeUnpin for CacheLevel
impl UnwindSafe for CacheLevel
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