Struct snarkvm_circuit_environment::helpers::count::Count
source · pub struct Count(pub Constant, pub Public, pub Private, pub Constraints);Expand description
A helper struct for tracking the number of constants, public inputs, private inputs, and constraints.
Tuple Fields
0: Constant1: Public2: Private3: ConstraintsImplementations
sourceimpl Count
impl Count
sourcepub const fn is(
num_constants: u64,
num_public: u64,
num_private: u64,
num_constraints: u64
) -> Self
pub const fn is(
num_constants: u64,
num_public: u64,
num_private: u64,
num_constraints: u64
) -> Self
Returns a new Count whose constituent metrics are all Exact.
Trait Implementations
impl Copy for Count
Auto Trait Implementations
impl RefUnwindSafe for Count
impl Send for Count
impl Sync for Count
impl Unpin for Count
impl UnwindSafe for Count
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more