pub struct MemoryAlignment {
pub data_alignment: u32,
pub function_alignment: u32,
pub simd_alignment: u32,
}
Expand description
Memory alignment configuration
Fields§
§data_alignment: u32
Data alignment (bytes)
function_alignment: u32
Function alignment (bytes)
simd_alignment: u32
SIMD alignment (bytes)
Implementations§
Source§impl MemoryAlignment
impl MemoryAlignment
Sourcepub fn high_performance() -> Self
pub fn high_performance() -> Self
Create alignment configuration optimized for performance
Sourcepub fn is_simd_compatible(&self) -> bool
pub fn is_simd_compatible(&self) -> bool
Check if alignment is compatible with SIMD operations
Sourcepub fn is_cache_optimized(&self) -> bool
pub fn is_cache_optimized(&self) -> bool
Check if alignment is optimized for cache performance
Trait Implementations§
Source§impl Clone for MemoryAlignment
impl Clone for MemoryAlignment
Source§fn clone(&self) -> MemoryAlignment
fn clone(&self) -> MemoryAlignment
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MemoryAlignment
impl Debug for MemoryAlignment
Auto Trait Implementations§
impl Freeze for MemoryAlignment
impl RefUnwindSafe for MemoryAlignment
impl Send for MemoryAlignment
impl Sync for MemoryAlignment
impl Unpin for MemoryAlignment
impl UnwindSafe for MemoryAlignment
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more