pub enum PCError {
Show 15 variants
AnyhowError(Error),
MissingPolynomial {
label: String,
},
MissingEvaluation {
label: String,
},
MissingRng,
DegreeIsZero,
TooManyCoefficients {
num_coefficients: usize,
num_powers: usize,
},
HidingBoundIsZero,
HidingBoundToolarge {
hiding_poly_degree: usize,
num_powers: usize,
},
LagrangeBasisSizeIsNotPowerOfTwo,
LagrangeBasisSizeIsTooLarge,
TrimmingDegreeTooLarge,
EquationHasDegreeBounds(String),
UnsupportedDegreeBound(usize),
UnsupportedLagrangeBasisSize(usize),
IncorrectDegreeBound {
poly_degree: usize,
degree_bound: usize,
max_degree: usize,
label: String,
},
}
Expand description
The error type for PolynomialCommitment
.
Variants§
AnyhowError(Error)
MissingPolynomial
MissingEvaluation
MissingRng
DegreeIsZero
TooManyCoefficients
Fields
HidingBoundIsZero
HidingBoundToolarge
LagrangeBasisSizeIsNotPowerOfTwo
LagrangeBasisSizeIsTooLarge
TrimmingDegreeTooLarge
EquationHasDegreeBounds(String)
UnsupportedDegreeBound(usize)
UnsupportedLagrangeBasisSize(usize)
IncorrectDegreeBound
Trait Implementations§
Source§impl Error for PCError
impl Error for PCError
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()
Auto Trait Implementations§
impl Freeze for PCError
impl RefUnwindSafe for PCError
impl Send for PCError
impl Sync for PCError
impl Unpin for PCError
impl UnwindSafe for PCError
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