Struct std::simd::b8x2
[−]
[src]
#[repr(simd)]pub struct b8x2(_, _);
A 16-bit wide vector with 2 bool lanes.
Methods
impl b8x2[src]
pub const fn new(x0: bool, x1: bool) -> b8x2[src]
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) -> b8x2[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) -> b8x2[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) -> b8x2[src]
Returns a new vector where the value at index is replaced by new_value.
Panics
If index >= Self::lanes().
impl b8x2[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 b8x2[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 b8x2[src]
pub fn eq(self, other: b8x2) -> b8x2[src]
Lane-wise equality comparison.
pub fn ne(self, other: b8x2) -> b8x2[src]
Lane-wise inequality comparison.
pub fn lt(self, other: b8x2) -> b8x2[src]
Lane-wise less-than comparison.
pub fn le(self, other: b8x2) -> b8x2[src]
Lane-wise less-than-or-equals comparison.
pub fn gt(self, other: b8x2) -> b8x2[src]
Lane-wise greater-than comparison.
pub fn ge(self, other: b8x2) -> b8x2[src]
Lane-wise greater-than-or-equals comparison.
Trait Implementations
impl Not for b8x2[src]
type Output = b8x2
The resulting type after applying the ! operator.
fn not(self) -> b8x2[src]
Performs the unary ! operation.
impl Default for b8x2[src]
impl Clone for b8x2[src]
fn clone(&self) -> b8x2[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 PartialOrd<b8x2> for b8x2[src]
fn partial_cmp(&self, __arg_0: &b8x2) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &b8x2) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &b8x2) -> 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: &b8x2) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &b8x2) -> bool[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl FromBits<b8x2> for u8x2[src]
impl FromBits<b8x2> for i8x2[src]
impl Debug for b8x2[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl Eq for b8x2[src]
impl PartialEq<b8x2> for b8x2[src]
fn eq(&self, other: &b8x2) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &b8x2) -> bool[src]
This method tests for !=.
impl BitAnd<b8x2> for b8x2[src]
type Output = b8x2
The resulting type after applying the & operator.
fn bitand(self, other: b8x2) -> b8x2[src]
Performs the & operation.
impl Copy for b8x2[src]
impl BitXorAssign<b8x2> for b8x2[src]
fn bitxor_assign(&mut self, other: b8x2)[src]
Performs the ^= operation.
impl BitOrAssign<b8x2> for b8x2[src]
fn bitor_assign(&mut self, other: b8x2)[src]
Performs the |= operation.
impl BitAndAssign<b8x2> for b8x2[src]
fn bitand_assign(&mut self, other: b8x2)[src]
Performs the &= operation.
impl BitOr<b8x2> for b8x2[src]
type Output = b8x2
The resulting type after applying the | operator.
fn bitor(self, other: b8x2) -> b8x2[src]
Performs the | operation.