pub struct Uri(/* private fields */);
Expand description
A type representing the URI of a route.
Implementations§
Source§impl Uri
impl Uri
pub fn root() -> Self
pub fn asterisk() -> Self
pub fn from_static(s: &'static str) -> Self
pub fn parse(s: &str) -> Result<Self, Error>
pub fn as_str(&self) -> &str
pub fn is_asterisk(&self) -> bool
pub fn capture_names(&self) -> Option<&CaptureNames>
pub fn join(&self, other: impl AsRef<Self>) -> Result<Self, Error>
Trait Implementations§
impl Eq for Uri
Auto Trait Implementations§
impl Freeze for Uri
impl RefUnwindSafe for Uri
impl Send for Uri
impl Sync for Uri
impl Unpin for Uri
impl UnwindSafe for Uri
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.