pub trait TypedUrl: Sized {
type Route: Display;
// Required methods
fn routes() -> &'static [Self::Route];
fn from_route(
route: &Self::Route,
args: &HashMap<String, Value>,
) -> Option<Self>;
}
Required Associated Types§
Required Methods§
fn routes() -> &'static [Self::Route]
fn from_route( route: &Self::Route, args: &HashMap<String, Value>, ) -> Option<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.