CacheLevel

Trait CacheLevel 

Source
pub trait CacheLevel {
    const HINT: i32;
}
Expand description

Cache level marker traits for compile-time dispatch

Required Associated Constants§

Source

const HINT: i32

The prefetch hint value for this cache level

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl CacheLevel for L1

Source§

const HINT: i32 = 3i32

Source§

impl CacheLevel for L2

Source§

const HINT: i32 = 2i32

Source§

impl CacheLevel for L3

Source§

const HINT: i32 = 1i32

Source§

impl CacheLevel for NTA

Source§

const HINT: i32 = 0i32