Enum hwlocality::object::attributes::CacheAssociativity
source · pub enum CacheAssociativity {
Unknown,
Ways(NonZeroUsize),
Full,
}
Expand description
Cache associativity
Variants§
Trait Implementations§
source§impl Arbitrary for CacheAssociativity
Available on crate feature proptest
only.
impl Arbitrary for CacheAssociativity
Available on crate feature
proptest
only.§type Parameters = <NonZero<usize> as Arbitrary>::Parameters
type Parameters = <NonZero<usize> as Arbitrary>::Parameters
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<Just<CacheAssociativity>>), (u32, Arc<Map<<NonZero<usize> as Arbitrary>::Strategy, fn(_: NonZero<usize>) -> CacheAssociativity>>), (u32, Arc<Just<CacheAssociativity>>))>
type Strategy = TupleUnion<((u32, Arc<Just<CacheAssociativity>>), (u32, Arc<Map<<NonZero<usize> as Arbitrary>::Strategy, fn(_: NonZero<usize>) -> CacheAssociativity>>), (u32, Arc<Just<CacheAssociativity>>))>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
source§impl Clone for CacheAssociativity
impl Clone for CacheAssociativity
source§fn clone(&self) -> CacheAssociativity
fn clone(&self) -> CacheAssociativity
Returns a copy 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 CacheAssociativity
impl Debug for CacheAssociativity
source§impl Default for CacheAssociativity
impl Default for CacheAssociativity
source§fn default() -> CacheAssociativity
fn default() -> CacheAssociativity
Returns the “default value” for a type. Read more
source§impl Hash for CacheAssociativity
impl Hash for CacheAssociativity
source§impl PartialEq for CacheAssociativity
impl PartialEq for CacheAssociativity
source§fn eq(&self, other: &CacheAssociativity) -> bool
fn eq(&self, other: &CacheAssociativity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CacheAssociativity
impl PartialOrd for CacheAssociativity
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CacheAssociativity
impl Eq for CacheAssociativity
impl StructuralPartialEq for CacheAssociativity
Auto Trait Implementations§
impl Freeze for CacheAssociativity
impl RefUnwindSafe for CacheAssociativity
impl Send for CacheAssociativity
impl Sync for CacheAssociativity
impl Unpin for CacheAssociativity
impl UnwindSafe for CacheAssociativity
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