MemoryOptimization

Trait MemoryOptimization 

Source
pub trait MemoryOptimization {
    // Provided method
    fn preferred_alignment(&self) -> usize
       where Self: Sized { ... }
}
Expand description

Memory layout optimizations for cache-friendly operations.

This trait provides hooks for memory layout optimizations that can improve cache performance and memory access patterns.

Provided Methods§

Source

fn preferred_alignment(&self) -> usize
where Self: Sized,

Get the preferred memory alignment for this type.

Implementors§