pub enum BitRingSwitchError {
PointTooNarrow {
needed: usize,
actual: usize,
},
BatchWidthMismatch {
expected: usize,
actual: usize,
},
WidthMismatch {
expected: usize,
actual: usize,
},
RowVariables {
row_variables: usize,
num_variables: usize,
},
SuccessorBatching {
expected: bool,
},
NoSuccessorView,
NoClaims,
}Expand description
Reasons a bit-alphabet reduction cannot be set up or run.
Variants§
PointTooNarrow
The evaluation point does not cover the coordinates one element absorbs.
Fields
BatchWidthMismatch
The batching challenge does not name the absorbed coordinates exactly.
A shorter one would zip-truncate, dropping identity rows. Both sides move the same way, so no later check would catch it.
Fields
WidthMismatch
A polynomial or point does not name the variables the reduction uses.
Fields
RowVariables
The successor view steps within more coordinates than the point names.
Fields
SuccessorBatching
A batching stage for the other kind of reduction was asked for.
NoSuccessorView
A successor claim was asked of a reduction set up without a successor view.
NoClaims
A batch of claims was asked for with no claim in it.
Trait Implementations§
Source§impl Debug for BitRingSwitchError
impl Debug for BitRingSwitchError
Source§impl Display for BitRingSwitchError
impl Display for BitRingSwitchError
impl Eq for BitRingSwitchError
Source§impl Error for BitRingSwitchError
impl Error for BitRingSwitchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BitRingSwitchError> for BitRingSwitchProofError
impl From<BitRingSwitchError> for BitRingSwitchProofError
Source§fn from(source: BitRingSwitchError) -> Self
fn from(source: BitRingSwitchError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BitRingSwitchError
impl PartialEq for BitRingSwitchError
impl StructuralPartialEq for BitRingSwitchError
Auto Trait Implementations§
impl Freeze for BitRingSwitchError
impl RefUnwindSafe for BitRingSwitchError
impl Send for BitRingSwitchError
impl Sync for BitRingSwitchError
impl Unpin for BitRingSwitchError
impl UnsafeUnpin for BitRingSwitchError
impl UnwindSafe for BitRingSwitchError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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