fn walk_chain(&self, prefix: usize, depth: usize)
        -> Option<Vec<(usize, usize)>>
    {
        // wraparound and check the complete chain
        if depth >= self.indices.len() {
            if prefix == self.start {
                Some(vec![])
            } else {
                None
            }
        } else {
            for ref suffix in &self.groups[self.indices[depth]][prefix] {
                match self.walk_chain(**suffix, depth + 1) {
                    Some(mut v) => {
                        v.push((prefix, **suffix));
                        return Some(v);
                    }

                    None => ()
                }
            }

            None
        }
    }
/// Walk a single direction for the specified prefix.
Walk a single direction for the specified prefix.
Walk a single direction for the specified prefix .
fn walk_chain(&self, prefix: usize, depth: usize)
        -> Option<Vec<(usize, usize)>>
    {
        // wraparound and check the complete chain
        if depth >= self.indices.len() {
            if prefix == self.start {
                Some(vec![])
            } else {
                None
            }
        } else {
            for ref suffix in &self.groups[self.indices[depth]][prefix] {
                match self.walk_chain(**suffix, depth + 1) {
                    Some(mut v) => {
                        v.push((prefix, **suffix));
                        return Some(v);
                    }
                    None => ()
                }
            }
            None
        }
    }
fn walk_chain ( & self , prefix : usize , depth : usize ) -> Option < Vec < ( usize , usize ) > > { // wraparound and check the complete chain if depth >= self . indices . len ( ) { if prefix == self . start { Some ( vec ! [ ] ) } else { None } } else { for ref suffix in & self . groups [ self . indices [ depth ] ] [ prefix ] { match self . walk_chain ( * * suffix , depth + 1 ) { Some ( mut v ) => { v . push ( ( prefix , * * suffix ) ) ; return Some ( v ) ; } None => ( ) } } None } }
Walk a single direction for the specified prefix.
Walk a single direction for the specified prefix .
&self
prefix
usize
depth
usize