pub struct RouteSpec { /* private fields */ }
Expand description
Routefinder’s representation of the parsed route
This contains both an optional source string (or unique description) and
an ordered sequence of Segment
s
Implementations§
Source§impl RouteSpec
impl RouteSpec
Sourcepub fn source(&self) -> Option<&str>
pub fn source(&self) -> Option<&str>
Retrieve a reference to the original route definition, if this routespec was parsed from a string representation. If this routespec was created another way, this will return None.
Sourcepub fn segments(&self) -> &[Segment]
pub fn segments(&self) -> &[Segment]
Slice accessor for the component Segment
s in this RouteSpec
Trait Implementations§
Source§impl Ord for RouteSpec
impl Ord for RouteSpec
Source§impl PartialOrd for RouteSpec
impl PartialOrd for RouteSpec
impl Eq for RouteSpec
Auto Trait Implementations§
impl Freeze for RouteSpec
impl RefUnwindSafe for RouteSpec
impl Send for RouteSpec
impl Sync for RouteSpec
impl Unpin for RouteSpec
impl UnwindSafe for RouteSpec
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