snarkvm_console_program

Trait SizeInBytes

Source
pub trait SizeInBytes {
    // Required method
    fn size_in_bytes() -> usize;
}

Required Methods§

Source

fn size_in_bytes() -> usize

Returns the size in bytes.

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<N> SizeInBytes for ComputeKey<N>
where N: Network,

Source§

fn size_in_bytes() -> usize

Returns the compute key size in bytes.

Implementors§

Source§

impl<E> SizeInBytes for Boolean<E>
where E: Environment,

Source§

impl<E> SizeInBytes for Field<E>
where E: Environment,

Source§

impl<E> SizeInBytes for Address<E>
where E: Environment,

Source§

impl<E> SizeInBytes for Group<E>
where E: Environment,

Source§

impl<E> SizeInBytes for Scalar<E>
where E: Environment,

Source§

impl<E, I> SizeInBytes for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

impl<N> SizeInBytes for Signature<N>
where N: Network,