Struct vek::vec::ShuffleMask4
[−]
[src]
pub struct ShuffleMask4(_);
Opaque type wrapping a hardware-preferred shuffle mask format for 4D vectors.
Methods
impl ShuffleMask4
[src]
fn new(m0: usize, m1: usize, m2: usize, m3: usize) -> Self
[src]
Creates a new shuffle mask from indices.
fn to_indices(&self) -> (usize, usize, usize, usize)
[src]
Extracts indices from this shuffle mask.
Trait Implementations
impl Debug for ShuffleMask4
[src]
impl Copy for ShuffleMask4
[src]
impl Clone for ShuffleMask4
[src]
fn clone(&self) -> ShuffleMask4
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for ShuffleMask4
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ShuffleMask4
[src]
fn eq(&self, __arg_0: &ShuffleMask4) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ShuffleMask4) -> bool
[src]
This method tests for !=
.
impl Eq for ShuffleMask4
[src]
impl From<usize> for ShuffleMask4
[src]
A ShuffleMask4
can be obtained by using the same index for all elements of the result.