pub struct SimdVec<T> { /* private fields */ }Expand description
SIMD-aligned vector type with custom allocator
Implementations§
Source§impl<T> SimdVec<T>
impl<T> SimdVec<T>
Sourcepub fn with_allocator(allocator: SimdAllocator) -> Self
pub fn with_allocator(allocator: SimdAllocator) -> Self
Create a new SIMD vector with custom allocator
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a SIMD vector with specified capacity
Sourcepub fn as_mut_slice(&mut self) -> &mut [T]
pub fn as_mut_slice(&mut self) -> &mut [T]
Get a mutable slice view of the vector
Sourcepub fn allocator_stats(&self) -> &AllocatorStats
pub fn allocator_stats(&self) -> &AllocatorStats
Get allocator statistics
Sourcepub fn is_simd_aligned(&self) -> bool
pub fn is_simd_aligned(&self) -> bool
Check if the underlying memory is properly aligned for SIMD
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for SimdVec<T>
impl<T> RefUnwindSafe for SimdVec<T>where
T: RefUnwindSafe,
impl<T> !Send for SimdVec<T>
impl<T> !Sync for SimdVec<T>
impl<T> Unpin for SimdVec<T>
impl<T> UnsafeUnpin for SimdVec<T>
impl<T> UnwindSafe for SimdVec<T>where
T: RefUnwindSafe,
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