pub fn match_seg_if<F>(&mut self, pred: F) -> Option<String>
        where F: Fn(&str) -> bool {
        if self.path_segs.len() > 0 && pred(&self.path_segs[0]) {
            Some(self.path_segs.remove(0))
        } else {
            None
        }
    }
/// Match a segment of path. If the preceding segment in the current request
/// is matching the given condition, the segment is removed from internal
/// record and the matched segment is then returned. Otherwise, `None` is
/// returned.
Match a segment of path. If the preceding segment in the current request
is matching the given condition, the segment is removed from internal
record and the matched segment is then returned. Otherwise, `None` is
returned.
Match a segment of path . If the preceding segment in the current request is matching the given condition the segment is removed from internal record and the matched segment is then returned . Otherwise ` None ` is returned .
pub fn match_seg_if<F>(&mut self, pred: F) -> Option<String>
        where F: Fn(&str) -> bool {
        if self.path_segs.len() > 0 && pred(&self.path_segs[0]) {
            Some(self.path_segs.remove(0))
        } else {
            None
        }
    }
pub fn match_seg_if < F > ( & mut self , pred : F ) -> Option < String > where F : Fn ( & str ) -> bool { if self . path_segs . len ( ) > 0 && pred ( & self . path_segs [ 0 ] ) { Some ( self . path_segs . remove ( 0 ) ) } else { None } }
Match a segment of path.
Match a segment of path .
&mut self
pred
F
&mut self
pred
F