pub trait FromBits {
// Required methods
fn from_lsb0(iter: impl IntoIterator<Item = bool>) -> Self;
fn from_msb0(iter: impl IntoIterator<Item = bool>) -> Self;
}Expand description
Trait used for parsing a value from a bit iterator.
Required Methods§
sourcefn from_lsb0(iter: impl IntoIterator<Item = bool>) -> Self
fn from_lsb0(iter: impl IntoIterator<Item = bool>) -> Self
Parses a value from an iterator of bits in Lsb0 order.
If the iterator is shorter than the number of bits in the type, the remaining bits are assumed to be zero.
sourcefn from_msb0(iter: impl IntoIterator<Item = bool>) -> Self
fn from_msb0(iter: impl IntoIterator<Item = bool>) -> Self
Parses a value from an iterator of bits in Msb0 order.
If the iterator is shorter than the number of bits in the type, the remaining bits are assumed to be zero.