pub struct MatchableUrl { /* private fields */ }
Implementations§
Source§impl MatchableUrl
impl MatchableUrl
Sourcepub fn new(url: &str) -> MatchableUrl
pub fn new(url: &str) -> MatchableUrl
Sourcepub fn _match(&self, request_path: Vec<&str>) -> MatchableUrlResult
pub fn _match(&self, request_path: Vec<&str>) -> MatchableUrlResult
Attempts to match a request with a MatchableUrl. If this succeeds, it will also return a list of the in-url parameters.
Trait Implementations§
Source§impl Hash for MatchableUrl
impl Hash for MatchableUrl
Source§impl PartialEq for MatchableUrl
impl PartialEq for MatchableUrl
impl Eq for MatchableUrl
Auto Trait Implementations§
impl Freeze for MatchableUrl
impl RefUnwindSafe for MatchableUrl
impl Send for MatchableUrl
impl Sync for MatchableUrl
impl Unpin for MatchableUrl
impl UnwindSafe for MatchableUrl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more