pub enum PrefetchLocality {
NonTemporal,
Low,
Medium,
High,
}Expand description
Cache locality hint for prefetch operations.
Variants§
NonTemporal
Non-temporal: Data will be used once and not reused. Prefetches to L1 but may be evicted quickly.
Low
Low: Data will be used a few times. Typically prefetches to L3.
Medium
Medium: Data will be used moderately. Typically prefetches to L2.
High
High: Data will be heavily reused. Prefetches to L1 for fastest access.
Trait Implementations§
Source§impl Clone for PrefetchLocality
impl Clone for PrefetchLocality
Source§fn clone(&self) -> PrefetchLocality
fn clone(&self) -> PrefetchLocality
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 PrefetchLocality
impl Debug for PrefetchLocality
Source§impl PartialEq for PrefetchLocality
impl PartialEq for PrefetchLocality
impl Copy for PrefetchLocality
impl Eq for PrefetchLocality
impl StructuralPartialEq for PrefetchLocality
Auto Trait Implementations§
impl Freeze for PrefetchLocality
impl RefUnwindSafe for PrefetchLocality
impl Send for PrefetchLocality
impl Sync for PrefetchLocality
impl Unpin for PrefetchLocality
impl UnwindSafe for PrefetchLocality
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