Enum snarkvm_algorithms::polycommit::error::PCError
source · 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)>
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 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