pub struct CountingCert {
pub n: u64,
pub q: u64,
pub remainder: u64,
}Expand description
A modular-counting refutation: an n-element set cannot split into blocks of size q because
q ∤ n (the remainder is non-zero). Re-checkable in O(1): n % q == remainder != 0.
Fields§
§n: u64§q: u64§remainder: u64Implementations§
Trait Implementations§
Source§impl Clone for CountingCert
impl Clone for CountingCert
Source§fn clone(&self) -> CountingCert
fn clone(&self) -> CountingCert
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CountingCert
impl Debug for CountingCert
Source§impl PartialEq for CountingCert
impl PartialEq for CountingCert
Source§fn eq(&self, other: &CountingCert) -> bool
fn eq(&self, other: &CountingCert) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CountingCert
impl Eq for CountingCert
impl StructuralPartialEq for CountingCert
Auto Trait Implementations§
impl Freeze for CountingCert
impl RefUnwindSafe for CountingCert
impl Send for CountingCert
impl Sync for CountingCert
impl Unpin for CountingCert
impl UnsafeUnpin for CountingCert
impl UnwindSafe for CountingCert
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