pub trait Strategy {
// Required methods
fn index(affinity: PinnedAffinity) -> usize;
fn count(affinity: PinnedAffinity) -> usize;
}Expand description
A strategy for storing data in a affinity-aware manner.
Required Methods§
Sourcefn index(affinity: PinnedAffinity) -> usize
fn index(affinity: PinnedAffinity) -> usize
Returns the slot index for the given affinity.
Sourcefn count(affinity: PinnedAffinity) -> usize
fn count(affinity: PinnedAffinity) -> usize
Returns the total number of slots for the given affinity.
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.