pub enum SimdWidth {
X2,
X4,
X8,
X16,
}Expand description
SIMD lane width for vectorized operations
Variants§
X2
2 elements (64-bit total for 32-bit elements)
X4
4 elements (128-bit SSE)
X8
8 elements (256-bit AVX/AVX2)
X16
16 elements (512-bit AVX-512)
Implementations§
Source§impl SimdWidth
impl SimdWidth
Sourcepub fn element_count(&self) -> usize
pub fn element_count(&self) -> usize
Get the number of elements in this SIMD width
Sourcepub fn from_count(count: usize) -> Option<Self>
pub fn from_count(count: usize) -> Option<Self>
Create from element count if it’s a valid SIMD width
Trait Implementations§
impl Copy for SimdWidth
impl Eq for SimdWidth
impl StructuralPartialEq for SimdWidth
Auto Trait Implementations§
impl Freeze for SimdWidth
impl RefUnwindSafe for SimdWidth
impl Send for SimdWidth
impl Sync for SimdWidth
impl Unpin for SimdWidth
impl UnwindSafe for SimdWidth
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.