fn check_degrees_and_bounds<'a>(
        supported_degree: usize,
        p: &'a LabeledPolynomial<E::Fr, P>,
    ) -> Result<(), Error>
    where
        P: 'a,
    {
        if p.degree() > supported_degree {
            return Err(Error::PolynomialDegreeTooLarge {
                poly_degree: p.degree(),
                supported_degree,
                label: p.label().to_string(),
            });
        } else {
            Ok(())
        }
    }
/// Check that a given polynomial is supported by parameters
Check that a given polynomial is supported by parameters
Check that a given polynomial is supported by parameters
fn check_degrees_and_bounds<'a>(
        supported_degree: usize,
        p: &'a LabeledPolynomial<E::Fr, P>,
    ) -> Result<(), Error>
    where
        P: 'a,
    {
        if p.degree() > supported_degree {
            return Err(Error::PolynomialDegreeTooLarge {
                poly_degree: p.degree(),
                supported_degree,
                label: p.label().to_string(),
            });
        } else {
            Ok(())
        }
    }
fn check_degrees_and_bounds < ' a > ( supported_degree : usize , p : & ' a LabeledPolynomial < E :: Fr , P > , ) -> Result < ( ) , Error > where P : ' a , { if p . degree ( ) > supported_degree { return Err ( Error :: PolynomialDegreeTooLarge { poly_degree : p . degree ( ) , supported_degree , label : p . label ( ) . to_string ( ) , } ) ; } else { Ok ( ( ) ) } }
Check that a given polynomial is supported by parameters
Check that a given polynomial is supported by parameters
supported_degree
usize
p
&'a LabeledPolynomial<E::Fr, P>