#[non_exhaustive]pub enum CacheLocality {
Streaming,
Temporal,
Random,
}Expand description
Non-binding cache behavior hint for a memory region.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Streaming
One-pass streaming access.
Temporal
Reused temporal access.
Random
Random access with little spatial predictability.
Trait Implementations§
Source§impl Clone for CacheLocality
impl Clone for CacheLocality
Source§fn clone(&self) -> CacheLocality
fn clone(&self) -> CacheLocality
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CacheLocality
Source§impl Debug for CacheLocality
impl Debug for CacheLocality
impl Eq for CacheLocality
Source§impl Hash for CacheLocality
impl Hash for CacheLocality
Source§impl PartialEq for CacheLocality
impl PartialEq for CacheLocality
impl StructuralPartialEq for CacheLocality
Auto Trait Implementations§
impl Freeze for CacheLocality
impl RefUnwindSafe for CacheLocality
impl Send for CacheLocality
impl Sync for CacheLocality
impl Unpin for CacheLocality
impl UnsafeUnpin for CacheLocality
impl UnwindSafe for CacheLocality
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.