/// Remove trailing zeros; this should be applied by internal constructors
/// to get the canonical representation of each polynomial.
Remove trailing zeros; this should be applied by internal constructors
to get the canonical representation of each polynomial.
Remove trailing zeros ; this should be applied by internal constructors to get the canonical representation of each polynomial .
pub(super) fn remove_zeros(&mut self) {
        let zeros = self
            .coefficients
            .iter()
            .rev()
            .take_while(|c| c.is_zero())
            .count();
        let len = self.coefficients.len() - zeros;
        self.coefficients.truncate(len)
    }
pub ( super ) fn remove_zeros ( & mut self ) { let zeros = self . coefficients . iter ( ) . rev ( ) . take_while ( | c | c . is_zero ( ) ) . count ( ) ; let len = self . coefficients . len ( ) - zeros ; self . coefficients . truncate ( len ) }
Remove trailing zeros; this should be applied by internal constructors
to get the canonical representation of each polynomial.
Remove trailing zeros ; this should be applied by internal constructors to get the canonical representation of each polynomial .
&mut self