BitArray

Struct BitArray 

Source
pub struct BitArray<const LANES: usize> { /* private fields */ }

Trait Implementations§

Source§

impl<const L: usize> Add for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the + operator.
Source§

fn add(self, _: Self) -> Self

Performs the + operation. Read more
Source§

impl<const L: usize> BitAnd<&BitArray<L>> for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &Self) -> Self

Performs the & operation. Read more
Source§

impl<const L: usize> BitAnd for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self

Performs the & operation. Read more
Source§

impl<const L: usize> BitOr<&BitArray<L>> for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &Self) -> Self

Performs the | operation. Read more
Source§

impl<const L: usize> BitOr for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl<const L: usize> BitOrAssign for BitArray<L>

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl<const L: usize> BitXor<&BitArray<L>> for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &Self) -> Self

Performs the ^ operation. Read more
Source§

impl<const L: usize> BitXor for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self

Performs the ^ operation. Read more
Source§

impl<const LANES: usize> Clone for BitArray<LANES>

Source§

fn clone(&self) -> BitArray<LANES>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const L: usize> Debug for BitArray<L>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const LANES: usize> Default for BitArray<LANES>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<const L: usize> Hash for BitArray<L>

Source§

fn hash<H: Hasher>(&self, st: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<const L: usize> Mul for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the * operator.
Source§

fn mul(self, _: Self) -> Self

Performs the * operation. Read more
Source§

impl<const L: usize> Not for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self

Performs the unary ! operation. Read more
Source§

impl<const L: usize> One for BitArray<L>

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
Source§

impl<const L: usize> PartialEq for BitArray<L>

Source§

fn eq(&self, o: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const L: usize> PartialOrd for BitArray<L>

Source§

fn partial_cmp(&self, o: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const L: usize> Shl<usize> for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the << operator.
Source§

fn shl(self, n: usize) -> Self

Performs the << operation. Read more
Source§

impl<const L: usize> ShlAssign<usize> for BitArray<L>

Source§

fn shl_assign(&mut self, n: usize)

Performs the <<= operation. Read more
Source§

impl<const L: usize> Shr<usize> for BitArray<L>

Source§

type Output = BitArray<L>

The resulting type after applying the >> operator.
Source§

fn shr(self, n: usize) -> Self

Performs the >> operation. Read more
Source§

impl<const L: usize> ShrAssign<usize> for BitArray<L>

Source§

fn shr_assign(&mut self, n: usize)

Performs the >>= operation. Read more
Source§

impl<const L: usize> SimHashBits for BitArray<L>

Source§

impl<const L: usize> Zero for BitArray<L>

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl<const LANES: usize> Copy for BitArray<LANES>

Source§

impl<const L: usize> Eq for BitArray<L>

Auto Trait Implementations§

§

impl<const LANES: usize> Freeze for BitArray<LANES>

§

impl<const LANES: usize> RefUnwindSafe for BitArray<LANES>

§

impl<const LANES: usize> Send for BitArray<LANES>

§

impl<const LANES: usize> Sync for BitArray<LANES>

§

impl<const LANES: usize> Unpin for BitArray<LANES>

§

impl<const LANES: usize> UnwindSafe for BitArray<LANES>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.