pub trait Routes:
Clone
+ PartialEq
+ 'static {
// Required methods
fn all_routes() -> impl Iterator<Item = (&'static str, usize)>;
fn resolve(route_match: Option<Match<'_, '_, &usize>>) -> Option<Self>;
fn element(self) -> Element;
fn href(&self) -> String;
}Required Methods§
fn all_routes() -> impl Iterator<Item = (&'static str, usize)>
fn resolve(route_match: Option<Match<'_, '_, &usize>>) -> Option<Self>
fn element(self) -> Element
fn href(&self) -> String
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.