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§
impl Eq for MatchableUrl
Source§impl Hash for MatchableUrl
impl Hash for MatchableUrl
Source§impl PartialEq for MatchableUrl
impl PartialEq for MatchableUrl
Source§fn eq(&self, other: &MatchableUrl) -> bool
fn eq(&self, other: &MatchableUrl) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
impl Freeze for MatchableUrl
impl RefUnwindSafe for MatchableUrl
impl Send for MatchableUrl
impl Sync for MatchableUrl
impl Unpin for MatchableUrl
impl UnsafeUnpin 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