Struct snarkvm_circuit::Count
source · pub struct Count(pub Measurement<u64>, pub Measurement<u64>, pub Measurement<u64>, pub Measurement<u64>);
Expand description
A helper struct for tracking the number of constants, public inputs, private inputs, and constraints.
Tuple Fields§
§0: Measurement<u64>
§1: Measurement<u64>
§2: Measurement<u64>
§3: Measurement<u64>
Implementations§
source§impl Count
impl Count
sourcepub const fn is(
num_constants: u64,
num_public: u64,
num_private: u64,
num_constraints: u64
) -> Count
pub const fn is( num_constants: u64, num_public: u64, num_private: u64, num_constraints: u64 ) -> Count
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more