pub struct MemoryHints {
pub coalesce_axis: Option<u8>,
pub preferred_alignment: u32,
pub cache_locality: CacheLocality,
}Expand description
Non-binding memory optimization hints.
Fields§
§coalesce_axis: Option<u8>Preferred coalescing axis for multidimensional access.
preferred_alignment: u32Preferred byte alignment. 0 means no explicit preference.
cache_locality: CacheLocalityExpected cache locality.
Trait Implementations§
Source§impl Clone for MemoryHints
impl Clone for MemoryHints
Source§fn clone(&self) -> MemoryHints
fn clone(&self) -> MemoryHints
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 MemoryHints
Source§impl Debug for MemoryHints
impl Debug for MemoryHints
Source§impl Default for MemoryHints
impl Default for MemoryHints
impl Eq for MemoryHints
Source§impl Hash for MemoryHints
impl Hash for MemoryHints
Source§impl PartialEq for MemoryHints
impl PartialEq for MemoryHints
impl StructuralPartialEq for MemoryHints
Auto Trait Implementations§
impl Freeze for MemoryHints
impl RefUnwindSafe for MemoryHints
impl Send for MemoryHints
impl Sync for MemoryHints
impl Unpin for MemoryHints
impl UnsafeUnpin for MemoryHints
impl UnwindSafe for MemoryHints
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.