fn start(&mut self, input: K) {
        let count = self.counter.get();
        if let Some(ref current) = self.current {
            if *current == input {
                return;
            }
            if self.result.get_mut(current).unwrap().end(count) {
                let res = self.result.remove(&current);
                assert!(res.is_some());
            }
        }
        (|| {
            if let Some(ref mut group) = self.result.get_mut(&input) {
                group.start(count);
                return;
            }
            let res = self.result.insert(input.clone(), Group::new(count));
            assert!(res.is_none());
        })();
        self.current = Some(input);
    }
/// Starts a group whose name is `input`.
Starts a group whose name is `input`.
Starts a group whose name is ` input ` .
fn start(&mut self, input: K) {
        let count = self.counter.get();
        if let Some(ref current) = self.current {
            if *current == input {
                return;
            }
            if self.result.get_mut(current).unwrap().end(count) {
                let res = self.result.remove(&current);
                assert!(res.is_some());
            }
        }
        (|| {
            if let Some(ref mut group) = self.result.get_mut(&input) {
                group.start(count);
                return;
            }
            let res = self.result.insert(input.clone(), Group::new(count));
            assert!(res.is_none());
        })();
        self.current = Some(input);
    }
fn start ( & mut self , input : K ) { let count = self . counter . get ( ) ; if let Some ( ref current ) = self . current { if * current == input { return ; } if self . result . get_mut ( current ) . unwrap ( ) . end ( count ) { let res = self . result . remove ( & current ) ; assert ! ( res is_some ( ) ) ; } } ( | | { if let Some ( ref mut group ) = self . result . get_mut ( & input ) { group . start ( count ) ; return ; } let res = self . result . insert ( input . clone ( ) , Group :: new ( count ) ) ; assert ! ( res is_none ( ) ) ; } ) ( ) ; self . current = Some ( input ) ; }
Starts a group whose name is `input`.
Starts a group whose name is ` input ` .
&mut self
input
K