fn iter_node(node: &'a HttpRouterNode) -> Box<PathIter<'a>> {
        match &node.edges {
            Some(HttpRouterEdges::Literals(map)) => Box::new(
                map.iter()
                    .map(|(s, node)| (PathSegment::Literal(s.clone()), node)),
            ),
            Some(HttpRouterEdges::Variable(ref varname, ref node)) => Box::new(
                std::iter::once((PathSegment::Varname(varname.clone()), node)),
            ),
            None => Box::new(std::iter::empty()),
        }
    }
/**
     * Produce an iterator over `node`'s children. This is the null (empty)
     * iterator if there are no children, a single (once) iterator for a
     * path parameter variable, and a modified iterator in the case of
     * literal, explicit path segments.
     */
Produce an iterator over `node`'s children. This is the null (empty)
iterator if there are no children, a single (once) iterator for a
path parameter variable, and a modified iterator in the case of
literal, explicit path segments.
Produce an iterator over ` node ` ' s children . This is the null ( empty ) iterator if there are no children a single ( once ) iterator for a path parameter variable and a modified iterator in the case of literal explicit path segments .
fn iter_node(node: &'a HttpRouterNode) -> Box<PathIter<'a>> {
        match &node.edges {
            Some(HttpRouterEdges::Literals(map)) => Box::new(
                map.iter()
                    .map(|(s, node)| (PathSegment::Literal(s.clone()), node)),
            ),
            Some(HttpRouterEdges::Variable(ref varname, ref node)) => Box::new(
                std::iter::once((PathSegment::Varname(varname.clone()), node)),
            ),
            None => Box::new(std::iter::empty()),
        }
    }
fn iter_node ( node : & ' a HttpRouterNode ) -> Box < PathIter < ' a > > { match & node . edges { Some ( HttpRouterEdges :: Literals ( map ) ) => Box :: new ( map . iter ( ) . map ( | ( s , node ) | ( PathSegment :: Literal ( s . clone ( ) ) , node ) ) , ) , Some ( HttpRouterEdges :: Variable ( ref varname , ref node ) ) => Box :: new ( std :: iter :: once ( ( PathSegment :: Varname ( varname . clone ( ) ) , node ) ) , ) , None => Box :: new ( std :: iter :: empty ( ) ) , } }
Produce an iterator over `node`'s children.
Produce an iterator over ` node ` ' s children .
node
&'a HttpRouterNode
node
&'a HttpRouterNode