pub struct WitnessReport {
pub max_residual: Precision,
pub threshold: Precision,
pub ok: bool,
pub worst_row: Option<usize>,
}Expand description
Result of a witness check.
Fields§
§max_residual: Precisionmax_i |b[i] - A[i,:]·x| over the entries that were checked.
threshold: PrecisionThreshold the residual was compared against:
tolerance · max(1, ‖b‖_∞).
ok: boolTrue iff max_residual ≤ threshold.
worst_row: Option<usize>Row index of the worst residual (most violating, or simply the largest if all pass). Useful for debugging a failing audit.
Trait Implementations§
Source§impl Clone for WitnessReport
impl Clone for WitnessReport
Source§fn clone(&self) -> WitnessReport
fn clone(&self) -> WitnessReport
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 WitnessReport
impl Debug for WitnessReport
Source§impl PartialEq for WitnessReport
impl PartialEq for WitnessReport
Source§fn eq(&self, other: &WitnessReport) -> bool
fn eq(&self, other: &WitnessReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WitnessReport
Auto Trait Implementations§
impl Freeze for WitnessReport
impl RefUnwindSafe for WitnessReport
impl Send for WitnessReport
impl Sync for WitnessReport
impl Unpin for WitnessReport
impl UnsafeUnpin for WitnessReport
impl UnwindSafe for WitnessReport
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