Trait breez_sdk_liquid::bitcoin::util::BitArray
pub trait BitArray {
// Required methods
fn bit(&self, idx: usize) -> bool;
fn bit_slice(&self, start: usize, end: usize) -> Self;
fn mask(&self, n: usize) -> Self;
fn trailing_zeros(&self) -> usize;
fn zero() -> Self;
fn one() -> Self;
}
Expand description
A trait which allows numbers to act as fixed-size bit arrays
Required Methods§
fn bit_slice(&self, start: usize, end: usize) -> Self
fn bit_slice(&self, start: usize, end: usize) -> Self
Returns an array which is just the bits from start to end
fn trailing_zeros(&self) -> usize
fn trailing_zeros(&self) -> usize
Trailing zeros
fn zero() -> Self
fn zero() -> Self
Create all-zeros value
fn one() -> Self
fn one() -> Self
Create value representing one
Object Safety§
This trait is not object safe.