pub(in router) fn borrow_child(
        &self,
        segment: &str,
        segment_type: SegmentType,
    ) -> Option<&NodeBuilder> {
        self.children
            .iter()
            .find(|n| n.segment_type == segment_type && n.segment == segment)
    }
/// Borrow a child that represents the exact segment provided here.
Borrow a child that represents the exact segment provided here.
Borrow a child that represents the exact segment provided here .
pub(in router) fn borrow_child(
        &self,
        segment: &str,
        segment_type: SegmentType,
    ) -> Option<&NodeBuilder> {
        self.children
            .iter()
            .find(|n| n.segment_type == segment_type && n.segment == segment)
    }
pub ( in router ) fn borrow_child ( & self , segment : & str , segment_type : SegmentType , ) -> Option < & NodeBuilder > { self . children . iter ( ) . find ( | n | n . segment_type == segment_type && n . segment == segment ) }
Borrow a child that represents the exact segment provided here.
Borrow a child that represents the exact segment provided here .
&self
segment
&str
segment_type
SegmentType
&self
segment
&str
segment_type
SegmentType