pub enum Associativity {
DirectMapped,
SetAssociative,
}Expand description
Cache set-associativity.
Variants§
DirectMapped
Direct-mapped (1-way) cache.
SetAssociative
N-way set-associative cache (hardware default).
Trait Implementations§
Source§impl Clone for Associativity
impl Clone for Associativity
Source§fn clone(&self) -> Associativity
fn clone(&self) -> Associativity
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 Associativity
impl Debug for Associativity
Source§impl Format for Associativity
impl Format for Associativity
Source§impl From<Associativity> for Waysel
impl From<Associativity> for Waysel
Source§fn from(a: Associativity) -> Self
fn from(a: Associativity) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Associativity
impl PartialEq for Associativity
impl Copy for Associativity
impl Eq for Associativity
impl StructuralPartialEq for Associativity
Auto Trait Implementations§
impl Freeze for Associativity
impl RefUnwindSafe for Associativity
impl Send for Associativity
impl Sync for Associativity
impl Unpin for Associativity
impl UnwindSafe for Associativity
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