pub fn cycle_type(&self) -> Vec<usize> {
        let mut result = vec![0; self.size];
        let mut sum = 0;

        for len in self.factors.iter().map(|c| c.len()) {
            result[len] += 1;
            sum += len;
        }

        result[0] = self.size - sum;

        result
    }
/// Computes the cycle type (conjugacy class signature) of this
/// permutation.
///
/// The size of the returned `Vec` is always equal to the size of
/// the permutation.  The element at index _i_ is the number of
/// cycles of length _i_ + 1.
Computes the cycle type (conjugacy class signature) of this
permutation.

The size of the returned `Vec` is always equal to the size of
the permutation.  The element at index _i_ is the number of
cycles of length _i_ + 1.
Computes the cycle type ( conjugacy class signature ) of this permutation . The size of the returned ` Vec ` is always equal to the size of the permutation . The element at index _i_ is the number of cycles of length _i_ + 1 .
pub fn cycle_type(&self) -> Vec<usize> {
        let mut result = vec![0; self.size];
        let mut sum = 0;
        for len in self.factors.iter().map(|c| c.len()) {
            result[len] += 1;
            sum += len;
        }
        result[0] = self.size - sum;
        result
    }
pub fn cycle_type ( & self ) -> Vec < usize > { let mut result = vec ! [ 0 self size ] ; let mut sum = 0 ; for len in self . factors . iter ( ) . map ( | c | c . len ( ) ) { result [ len ] += 1 ; sum += len ; } result [ 0 ] = self . size - sum ; result }
Computes the cycle type (conjugacy class signature) of this
permutation.
Computes the cycle type ( conjugacy class signature ) of this permutation .
&self
&self