fn try_next(&mut self) -> GroupNext<T> {
        // If there's a next element and generator.
        if let Some((el, gen)) = self.next_el_gen() {
            let new_el = T::mul(el.as_ref(), gen);

            // If the group element is new.
            if self.insert(new_el.clone()) {
                GroupNext::New(new_el)
            }
            // If we found a repeat.
            else {
                GroupNext::Repeat
            }
        }
        // If we already went through the entire group.
        else {
            GroupNext::None
        }
    }
/// Multiplies the current element times the current generator, determines
/// if it is a new element. Advances the iterator.
Multiplies the current element times the current generator, determines
if it is a new element. Advances the iterator.
Multiplies the current element times the current generator determines if it is a new element . Advances the iterator .
fn try_next(&mut self) -> GroupNext<T> {
        // If there's a next element and generator.
        if let Some((el, gen)) = self.next_el_gen() {
            let new_el = T::mul(el.as_ref(), gen);
            // If the group element is new.
            if self.insert(new_el.clone()) {
                GroupNext::New(new_el)
            }
            // If we found a repeat.
            else {
                GroupNext::Repeat
            }
        }
        // If we already went through the entire group.
        else {
            GroupNext::None
        }
    }
fn try_next ( & mut self ) -> GroupNext < T > { // If there's a next element and generator. if let Some ( ( el , gen ) ) = self . next_el_gen ( ) { let new_el = T :: mul ( el . as_ref ( ) , gen ) ; // If the group element is new. if self . insert ( new_el . clone ( ) ) { GroupNext :: New ( new_el ) } // If we found a repeat. else { GroupNext :: Repeat } } // If we already went through the entire group. else { GroupNext :: None } }
Multiplies the current element times the current generator, determines
if it is a new element.
Multiplies the current element times the current generator determines if it is a new element .
&mut self
&mut self