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§
Sourcefn preferred_alignment(&self) -> usizewhere
Self: Sized,
fn preferred_alignment(&self) -> usizewhere
Self: Sized,
Get the preferred memory alignment for this type.