Skip to main content

Routes

Trait Routes 

Source
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§

Source

fn all_routes() -> impl Iterator<Item = (&'static str, usize)>

Source

fn resolve(route_match: Option<Match<'_, '_, &usize>>) -> Option<Self>

Source

fn element(self) -> Element

Source

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.

Implementors§