pub struct MemorySafetyGuard;Expand description
Memory safety guarantees for SIMD operations
Implementations§
Source§impl MemorySafetyGuard
impl MemorySafetyGuard
Sourcepub fn check_alignment(ptr: *const u8, alignment: usize) -> bool
pub fn check_alignment(ptr: *const u8, alignment: usize) -> bool
Ensure proper alignment for SIMD operations
Sourcepub fn create_aligned_vec<T>(size: usize, alignment: usize) -> Vec<T>
pub fn create_aligned_vec<T>(size: usize, alignment: usize) -> Vec<T>
Create aligned vector for SIMD operations
Sourcepub fn validate_memory_range(ptr: *const u8, size: usize) -> SafeSimdResult<()>
pub fn validate_memory_range(ptr: *const u8, size: usize) -> SafeSimdResult<()>
Validate memory range for SIMD operations
Auto Trait Implementations§
impl Freeze for MemorySafetyGuard
impl RefUnwindSafe for MemorySafetyGuard
impl Send for MemorySafetyGuard
impl Sync for MemorySafetyGuard
impl Unpin for MemorySafetyGuard
impl UnsafeUnpin for MemorySafetyGuard
impl UnwindSafe for MemorySafetyGuard
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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