pub struct Route(pub String);Expand description
A small newtype wrapper for a conditional-route label.
Routers may return any impl ToString label (a plain &str/String, or a
user-defined route enum that implements Display). Route is an optional
ergonomic helper for building route tables and for routers that prefer to
return a typed value instead of a bare string; it stringifies via
ToString at the route-table boundary.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
impl Eq for Route
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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