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§
source§impl PartialEq<PathQuery> for PathQuery
impl PartialEq<PathQuery> for PathQuery
impl Eq for PathQuery
impl StructuralEq for PathQuery
impl StructuralPartialEq for PathQuery
Auto Trait Implementations§
impl RefUnwindSafe for PathQuery
impl Send for PathQuery
impl Sync for PathQuery
impl Unpin for PathQuery
impl UnwindSafe for PathQuery
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more