pub trait SizeInBits {
// Required method
fn size_in_bits() -> usize;
}
Required Methods§
Sourcefn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the size in bits.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<E> SizeInBits for Address<E>where
E: Environment,
impl<E> SizeInBits for Address<E>where
E: Environment,
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the address size in bits.
Source§impl<E> SizeInBits for Boolean<E>where
E: Environment,
impl<E> SizeInBits for Boolean<E>where
E: Environment,
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the field size in bits.
Source§impl<E> SizeInBits for Field<E>where
E: Environment,
impl<E> SizeInBits for Field<E>where
E: Environment,
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the field size in bits.
Source§impl<E> SizeInBits for Group<E>where
E: Environment,
impl<E> SizeInBits for Group<E>where
E: Environment,
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the group size in bits.
Source§impl<E> SizeInBits for Scalar<E>where
E: Environment,
impl<E> SizeInBits for Scalar<E>where
E: Environment,
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the scalar size in bits.
Source§impl<E, I> SizeInBits for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> SizeInBits for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the integer size in bits.
Source§impl<N> SizeInBits for ComputeKey<N>where
N: Network,
impl<N> SizeInBits for ComputeKey<N>where
N: Network,
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the compute key size in bits.
Source§impl<N> SizeInBits for Signature<N>where
N: Network,
impl<N> SizeInBits for Signature<N>where
N: Network,
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the signature size in bits.