pub fn new<S>(segment: S, segment_type: SegmentType) -> Self
    where
        S: Borrow<str>,
    {
        let segment = segment.borrow().to_owned();
        NodeBuilder {
            segment,
            segment_type,
            routes: vec![],
            children: vec![],
            delegating: false,
        }
    }
/// Creates new `NodeBuilder` for the given segment.
Creates new `NodeBuilder` for the given segment.
Creates new ` NodeBuilder ` for the given segment .
pub fn new<S>(segment: S, segment_type: SegmentType) -> Self
    where
        S: Borrow<str>,
    {
        let segment = segment.borrow().to_owned();
        NodeBuilder {
            segment,
            segment_type,
            routes: vec![],
            children: vec![],
            delegating: false,
        }
    }
pub fn new < S > ( segment : S , segment_type : SegmentType ) -> Self where S : Borrow < str > , { let segment = segment . borrow ( ) . to_owned ( ) ; NodeBuilder { segment , segment_type , routes : vec ! [ ] , children : vec ! [ ] , delegating : false , } }
Creates new `NodeBuilder` for the given segment.
Creates new ` NodeBuilder ` for the given segment .
segment
S
segment_type
SegmentType
segment
S
segment_type
SegmentType