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: Constant
§1: Public
§2: Private
§3: Constraints
Implementations§
Source§impl 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 Freeze for Count
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more