pub trait FromBits: Sized {
// Required methods
fn from_bits_le(bits: &[bool]) -> Result<Self>;
fn from_bits_be(bits: &[bool]) -> Result<Self>;
}
Required Methods§
sourcefn from_bits_le(bits: &[bool]) -> Result<Self>
fn from_bits_le(bits: &[bool]) -> Result<Self>
Reads Self
from a boolean array in little-endian order.
sourcefn from_bits_be(bits: &[bool]) -> Result<Self>
fn from_bits_be(bits: &[bool]) -> Result<Self>
Reads Self
from a boolean array in big-endian order.