Struct bitslice::B8

source ·
#[repr(align(1))]
pub struct B8(pub [u8; 1]);
Expand description

An array of bits

Tuple Fields§

§0: [u8; 1]

Trait Implementations§

source§

impl BitAnd for B8

§

type Output = B8

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitArray for B8

source§

const LEN: usize = 8usize

Number of bits on the array.
source§

fn splat(s: bool) -> Self

Splats the sign across the bit array.
source§

fn get_bit(self, index: usize) -> bool

Get a bit. Poor performance, used only for testing and debugging.
source§

fn set_bit(&mut self, index: usize, sign: bool)

Set a bit. Poor performance, used only for testing and debugging.
source§

fn count_ones(self) -> u32

source§

fn transpose_in_place(a: &mut BitMatrix<Self, 8>)

Transpose a square matrix in place. This will likely be better performance than using Transpose::transpose().
source§

impl BitOr for B8

§

type Output = B8

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitXor for B8

§

type Output = B8

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl Clone for B8

source§

fn clone(&self) -> B8

Returns a copy 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 Debug for B8

source§

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

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

impl Default for B8

source§

fn default() -> Self

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

impl Display for B8

source§

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

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

impl Distribution<B8> for Standard

source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> B8

Generate a random value of T, using rng as the source of randomness.
source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
source§

impl Not for B8

§

type Output = B8

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl PartialEq for B8

source§

fn eq(&self, other: &B8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Transpose<B128> for B8

source§

impl Transpose<B256> for B8

source§

impl Transpose<B512> for B8

source§

impl Transpose<B8> for B128

source§

impl Transpose<B8> for B256

source§

impl Transpose<B8> for B512

source§

impl Copy for B8

source§

impl Eq for B8

source§

impl StructuralEq for B8

source§

impl StructuralPartialEq for B8

Auto Trait Implementations§

§

impl RefUnwindSafe for B8

§

impl Send for B8

§

impl Sync for B8

§

impl Unpin for B8

§

impl UnwindSafe for B8

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V