snarkvm_circuit_environment::traits

Trait Metrics

Source
pub trait Metrics<Op: ?Sized> {
    type Case: ?Sized;

    // Required method
    fn count(parameter: &Self::Case) -> Count;
}
Expand description

Trait for determining the number of constants, public input, private inputs, and constraints for an operation.

Required Associated Types§

Required Methods§

Source

fn count(parameter: &Self::Case) -> Count

Returns the number of constants, public inputs, private inputs, and constraints.

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.

Implementors§