Trait snarkvm_console_program::integers::FromBits
pub trait FromBits: Sized {
// Required methods
fn from_bits_le(bits: &[bool]) -> Result<Self, Error>;
fn from_bits_be(bits: &[bool]) -> Result<Self, Error>;
}
Required Methods§
fn from_bits_le(bits: &[bool]) -> Result<Self, Error>
fn from_bits_le(bits: &[bool]) -> Result<Self, Error>
Reads Self
from a boolean array in little-endian order.
fn from_bits_be(bits: &[bool]) -> Result<Self, Error>
fn from_bits_be(bits: &[bool]) -> Result<Self, Error>
Reads Self
from a boolean array in big-endian order.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<N> FromBits for ComputeKey<N>where
N: Network,
impl<N> FromBits for ComputeKey<N>where N: Network,
source§fn from_bits_le(bits_le: &[bool]) -> Result<ComputeKey<N>, Error>
fn from_bits_le(bits_le: &[bool]) -> Result<ComputeKey<N>, Error>
Initializes a new compute key from a list of little-endian bits.
source§fn from_bits_be(bits_be: &[bool]) -> Result<ComputeKey<N>, Error>
fn from_bits_be(bits_be: &[bool]) -> Result<ComputeKey<N>, Error>
Initializes a new compute key from a list of big-endian bits.