Type Definition bittersweet::bitline::Bitline8
source · pub type Bitline8 = u8;
Trait Implementations§
source§impl Bitline for Bitline8
impl Bitline for Bitline8
source§fn by_range(begin: usize, end: usize) -> Self
fn by_range(begin: usize, end: usize) -> Self
Return the bits standing in the given range. Read more
source§fn is_not_empty(&self) -> bool
fn is_not_empty(&self) -> bool
Return true if the bit is not filled with zero. Read more
source§fn is_not_full(&self) -> bool
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>
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>
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
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
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
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
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
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
fn first_bits(&self) -> Self
Return the first bits of each consecutive bits. Read more
source§fn filled_first_bit_to_last_bit(&self) -> Self
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 bytes_length() -> usize
fn bytes_length() -> usize
Return the bytes size of the bitline. Read more
source§fn num_bits(&self) -> usize
fn num_bits(&self) -> usize
Return the bits standing in the given range. (bit count) Read more
source§fn includes(&self, other: Self) -> bool
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
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
fn range(&self, begin: usize, end: usize) -> Self
Return the standing bits by the given range. Read more