Struct core::simd::b8x16
[−]
[src]
#[repr(simd)]pub struct b8x16(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);
A 128-bit vector with 16 bool lanes.
Methods
impl b8x16[src]
pub const fn new(
x0: bool,
x1: bool,
x2: bool,
x3: bool,
x4: bool,
x5: bool,
x6: bool,
x7: bool,
x8: bool,
x9: bool,
x10: bool,
x11: bool,
x12: bool,
x13: bool,
x14: bool,
x15: bool
) -> Self[src]
x0: bool,
x1: bool,
x2: bool,
x3: bool,
x4: bool,
x5: bool,
x6: bool,
x7: bool,
x8: bool,
x9: bool,
x10: bool,
x11: bool,
x12: bool,
x13: bool,
x14: bool,
x15: bool
) -> Self
Creates a new instance with each vector elements initialized with the provided values.
pub const fn lanes() -> usize[src]
Returns the number of vector lanes.
pub const fn splat(value: bool) -> Self[src]
Constructs a new instance with each element initialized to
value.
pub fn extract(self, index: usize) -> bool[src]
pub unsafe fn extract_unchecked(self, index: usize) -> bool[src]
Extracts the value at index.
If index >= Self::lanes() the behavior is undefined.
pub fn replace(self, index: usize, new_value: bool) -> Self[src]
Returns a new vector where the value at index is replaced by new_value.
Panics
If index >= Self::lanes().
pub unsafe fn replace_unchecked(self, index: usize, new_value: bool) -> Self[src]
Returns a new vector where the value at index is replaced by new_value.
Panics
If index >= Self::lanes().
impl b8x16[src]
pub fn and(self) -> bool[src]
Lane-wise bitwise and of the vector elements.
pub fn or(self) -> bool[src]
Lane-wise bitwise or of the vector elements.
pub fn xor(self) -> bool[src]
Lane-wise bitwise xor of the vector elements.
impl b8x16[src]
pub fn all(self) -> bool[src]
Are all vector lanes true?
pub fn any(self) -> bool[src]
Is any vector lanes true?
pub fn none(self) -> bool[src]
Are all vector lanes false?
impl b8x16[src]
pub fn eq(self, other: b8x16) -> b8x16[src]
Lane-wise equality comparison.
pub fn ne(self, other: b8x16) -> b8x16[src]
Lane-wise inequality comparison.
pub fn lt(self, other: b8x16) -> b8x16[src]
Lane-wise less-than comparison.
pub fn le(self, other: b8x16) -> b8x16[src]
Lane-wise less-than-or-equals comparison.
pub fn gt(self, other: b8x16) -> b8x16[src]
Lane-wise greater-than comparison.
pub fn ge(self, other: b8x16) -> b8x16[src]
Lane-wise greater-than-or-equals comparison.
Trait Implementations
impl Copy for b8x16[src]
impl Debug for b8x16[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialOrd for b8x16[src]
fn partial_cmp(&self, __arg_0: &b8x16) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &b8x16) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &b8x16) -> bool[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &b8x16) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &b8x16) -> bool[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Clone for b8x16[src]
fn clone(&self) -> Self[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 Not for b8x16[src]
type Output = Self
The resulting type after applying the ! operator.
fn not(self) -> Self[src]
Performs the unary ! operation.
impl BitXor for b8x16[src]
type Output = Self
The resulting type after applying the ^ operator.
fn bitxor(self, other: Self) -> Self[src]
Performs the ^ operation.
impl BitAnd for b8x16[src]
type Output = Self
The resulting type after applying the & operator.
fn bitand(self, other: Self) -> Self[src]
Performs the & operation.
impl BitOr for b8x16[src]
type Output = Self
The resulting type after applying the | operator.
fn bitor(self, other: Self) -> Self[src]
Performs the | operation.
impl BitAndAssign for b8x16[src]
fn bitand_assign(&mut self, other: Self)[src]
Performs the &= operation.
impl BitOrAssign for b8x16[src]
fn bitor_assign(&mut self, other: Self)[src]
Performs the |= operation.
impl BitXorAssign for b8x16[src]
fn bitxor_assign(&mut self, other: Self)[src]
Performs the ^= operation.
impl Eq for b8x16[src]
impl PartialEq<b8x16> for b8x16[src]
fn eq(&self, other: &Self) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Self) -> bool[src]
This method tests for !=.