pub fn match_seg(&mut self, seg: &str) -> bool {
        if self.path_segs.len() > 0 &&
            &self.path_segs[0] == seg {
            self.path_segs.remove(0);
            true
        } else {
            false
        }
    }
/// Match a segment of path. If the preceding segment in the current request
/// is matching the given segment string, the segment is removed from
/// internal record and the matched segment is then returned. Otherwise,
/// `false` is returned.
Match a segment of path. If the preceding segment in the current request
is matching the given segment string, the segment is removed from
internal record and the matched segment is then returned. Otherwise,
`false` is returned.
Match a segment of path . If the preceding segment in the current request is matching the given segment string the segment is removed from internal record and the matched segment is then returned . Otherwise ` false ` is returned .
pub fn match_seg(&mut self, seg: &str) -> bool {
        if self.path_segs.len() > 0 &&
            &self.path_segs[0] == seg {
            self.path_segs.remove(0);
            true
        } else {
            false
        }
    }
pub fn match_seg ( & mut self , seg : & str ) -> bool { if self . path_segs . len ( ) > 0 && & self . path_segs [ 0 ] == seg { self . path_segs . remove ( 0 ) ; true } else { false } }
Match a segment of path.
Match a segment of path .
&mut self
seg
&str
&mut self
seg
&str