fn match_path(path: &str) -> Self {
        let segments = path
            .split('/')
            .filter(|s| !s.is_empty())
            .collect::<Vec<_>>();
        Self::match_route(&segments)
    }
/// Matches a route with the given path.
Matches a route with the given path.
Matches a route with the given path .
fn match_path(path: &str) -> Self {
        let segments = path
            .split('/')
            .filter(|s| !s.is_empty())
            .collect::<Vec<_>>();
        Self::match_route(&segments)
    }
fn match_path ( path : & str ) -> Self { let segments = path . split ( '/' ) . filter ( | s | ! s . is_empty ( ) ) . collect :: < Vec < _ > > ( ) ; Self :: match_route ( & segments ) }
Matches a route with the given path.
Matches a route with the given path .
path
&str