Trait snarkvm_console::prelude::SizeInBytes
pub trait SizeInBytes {
// Required method
fn size_in_bytes() -> usize;
}
Required Methods§
fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the size in bytes.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
§impl<E> SizeInBytes for Address<E>where
E: Environment,
impl<E> SizeInBytes for Address<E>where
E: Environment,
§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the address size in bytes.
§impl<E> SizeInBytes for Boolean<E>where
E: Environment,
impl<E> SizeInBytes for Boolean<E>where
E: Environment,
§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the boolean size in bytes.
§impl<E> SizeInBytes for Field<E>where
E: Environment,
impl<E> SizeInBytes for Field<E>where
E: Environment,
§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the field size in bytes.
§impl<E> SizeInBytes for Group<E>where
E: Environment,
impl<E> SizeInBytes for Group<E>where
E: Environment,
§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the group size in bytes.
§impl<E> SizeInBytes for Scalar<E>where
E: Environment,
impl<E> SizeInBytes for Scalar<E>where
E: Environment,
§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the scalar size in bytes.
§impl<E, I> SizeInBytes for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> SizeInBytes for Integer<E, I>where
E: Environment,
I: IntegerType,
§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the integer size in bytes.
source§impl<N> SizeInBytes for ComputeKey<N>where
N: Network,
impl<N> SizeInBytes for ComputeKey<N>where
N: Network,
source§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the compute key size in bytes.
source§impl<N> SizeInBytes for Signature<N>where
N: Network,
impl<N> SizeInBytes for Signature<N>where
N: Network,
source§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the signature size in bytes.