Type Definition bittersweet::bitline::Bitline32

source ·
pub type Bitline32 = u32;

Trait Implementations§

source§

impl Bitline for Bitline32

source§

fn as_empty() -> Self

Return the bits all set to 0 Read more
source§

fn as_full() -> Self

Return the bits all set to 1 Read more
source§

fn by_range(begin: usize, end: usize) -> Self

Return the bits standing in the given range. Read more
source§

fn is_empty(&self) -> bool

Return true if the bit is filled with zero. Read more
source§

fn is_not_empty(&self) -> bool

Return true if the bit is not filled with zero. Read more
source§

fn is_full(&self) -> bool

Return true if the bit is filled with one. Read more
source§

fn is_not_full(&self) -> bool

Return true if the bit is not filled with one. Read more
source§

fn first_index(&self) -> Option<usize>

Return the first bit index that is set to one. If there is no bit set to one, return None. Read more
source§

fn last_index(&self) -> Option<usize>

Return the last bit index that is set to one. If there is no bit set to one, return None. Read more
source§

fn radius(&self, n: usize) -> Self

Return the bits standing in n distance from the original starting bit. If there is no bit set to one, return None. Read more
source§

fn around(&self, n: usize) -> Self

Return all bits standing between n distance from the standing bits (without original standing bits). Read more
source§

fn with_around(&self, n: usize) -> Self

Return all bits standing between n distance from the standing bits (with original standing bits). Read more
source§

fn first_bit(&self) -> Self

Return the first bit from the most significant bit. (last bit from the least significant bit) Read more
source§

fn last_bit(&self) -> Self

Return the last bit from the most significant bit. (first bit from the least significant bit) Read more
source§

fn first_bits(&self) -> Self

Return the first bits of each consecutive bits. Read more
source§

fn last_bits(&self) -> Self

Return the last bits of each consecutive bits. Read more
source§

fn filled_first_bit_to_last_bit(&self) -> Self

Return the bits filled from the first bit to the last bit. Read more
source§

fn length() -> usize

Return the bits size of the bitline. Read more
source§

fn bytes_length() -> usize

Return the bytes size of the bitline. Read more
source§

fn num_bits(&self) -> usize

Return the bits standing in the given range. (bit count) Read more
source§

fn includes(&self, other: Self) -> bool

Return true if every bits are standing in the given standing bits. empty bitlines are always included. (like a empty set in a set) Read more
source§

fn overlaps(&self, other: Self) -> bool

Return true if some bits are standing in the given standing bits. Read more
source§

fn range(&self, begin: usize, end: usize) -> Self

Return the standing bits by the given range. Read more
source§

fn remove(&self, other: Self) -> Self

Return the standing bits not included by the given range. Read more
source§

fn bit_repr(&self) -> String

Return the string representation of the bitline. Read more