pub fn degree(&self) -> usize {
        if self.is_zero() {
            0
        } else {
            assert!(self
                .coeffs
                .last()
                .map_or(false, |coeff| *coeff != Fp::zero()));
            self.coeffs.len() - 1
        }
    }
/// Returns the degree of the polynomial.
Returns the degree of the polynomial.
Returns the degree of the polynomial .
pub fn degree(&self) -> usize {
        if self.is_zero() {
            0
        } else {
            assert!(self
                .coeffs
                .last()
                .map_or(false, |coeff| *coeff != Fp::zero()));
            self.coeffs.len() - 1
        }
    }
pub fn degree ( & self ) -> usize { if self . is_zero ( ) { 0 } else { assert ! ( self coeffs last ( ) map_or ( false coeff coeff Fp zero ( ) ) ) ; self . coeffs . len ( ) - 1 } }
Returns the degree of the polynomial.
Returns the degree of the polynomial .
&self
&self