pub struct PathQuery { /* private fields */ }
Expand description
Implementations§
source§impl PathQuery
impl PathQuery
sourcepub fn query(&self) -> Option<&str>
pub fn query(&self) -> Option<&str>
Get the optional query segment.
&str
will never be empty if the return value is None
.
sourcepub fn truncate_query(&mut self)
pub fn truncate_query(&mut self)
Discards any Self::query()
.
sourcepub fn into_path(self) -> CompactString
pub fn into_path(self) -> CompactString
Discards any Self::query()
and returns the Self::path()
as a String
Trait Implementations§
impl Eq for PathQuery
impl StructuralPartialEq for PathQuery
Auto Trait Implementations§
impl Freeze for PathQuery
impl RefUnwindSafe for PathQuery
impl Send for PathQuery
impl Sync for PathQuery
impl Unpin for PathQuery
impl UnwindSafe for PathQuery
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more