pub type SafeAddress<F> = SafeType<F, 1, 160>;
Expand description
SafeType for Address.
Aliased Type§
struct SafeAddress<F> { /* private fields */ }
Implementations
Source§impl<F: ScalarField, const BYTES_PER_ELE: usize, const TOTAL_BITS: usize> SafeType<F, BYTES_PER_ELE, TOTAL_BITS>
impl<F: ScalarField, const BYTES_PER_ELE: usize, const TOTAL_BITS: usize> SafeType<F, BYTES_PER_ELE, TOTAL_BITS>
Sourcepub const BYTES_PER_ELE: usize = BYTES_PER_ELE
pub const BYTES_PER_ELE: usize = BYTES_PER_ELE
Number of bytes of each element.
Sourcepub const TOTAL_BITS: usize = TOTAL_BITS
pub const TOTAL_BITS: usize = TOTAL_BITS
Total bits of this type.
Sourcepub const VALUE_LENGTH: usize
pub const VALUE_LENGTH: usize
Number of elements of this type.
Sourcepub fn bits_per_ele() -> usize
pub fn bits_per_ele() -> usize
Number of bits of each element.
Sourcepub fn value(&self) -> &[AssignedValue<F>]
pub fn value(&self) -> &[AssignedValue<F>]
Return values in little-endian.
Trait Implementations
Source§impl<F: ScalarField, const BYTES_PER_ELE: usize, const TOTAL_BITS: usize> AsRef<[AssignedValue<F>]> for SafeType<F, BYTES_PER_ELE, TOTAL_BITS>
impl<F: ScalarField, const BYTES_PER_ELE: usize, const TOTAL_BITS: usize> AsRef<[AssignedValue<F>]> for SafeType<F, BYTES_PER_ELE, TOTAL_BITS>
Source§fn as_ref(&self) -> &[AssignedValue<F>]
fn as_ref(&self) -> &[AssignedValue<F>]
Converts this type into a shared reference of the (usually inferred) input type.