pub(in router) fn finalize(mut self) -> Node {
        self.children.sort();

        let mut children = self.children
            .drain(..)
            .map(|c| c.finalize())
            .collect::<Vec<Node>>();

        children.shrink_to_fit();
        self.routes.shrink_to_fit();

        Node {
            segment: self.segment,
            segment_type: self.segment_type,
            routes: self.routes,
            delegating: self.delegating,
            children,
        }
    }
/// Finalizes and sorts all internal data, including all children.
Finalizes and sorts all internal data, including all children.
Finalizes and sorts all internal data including all children .
pub(in router) fn finalize(mut self) -> Node {
        self.children.sort();
        let mut children = self.children
            .drain(..)
            .map(|c| c.finalize())
            .collect::<Vec<Node>>();
        children.shrink_to_fit();
        self.routes.shrink_to_fit();
        Node {
            segment: self.segment,
            segment_type: self.segment_type,
            routes: self.routes,
            delegating: self.delegating,
            children,
        }
    }
pub ( in router ) fn finalize ( mut self ) -> Node { self . children . sort ( ) ; let mut children = self . children . drain ( .. ) . map ( | c | c . finalize ( ) ) . collect :: < Vec < Node > > ( ) ; children . shrink_to_fit ( ) ; self . routes . shrink_to_fit ( ) ; Node { segment : self . segment , segment_type : self . segment_type , routes : self . routes , delegating : self . delegating , children , } }
Finalizes and sorts all internal data, including all children.
Finalizes and sorts all internal data including all children .
mut self
mut self