Trait NamedRoute

Source
pub trait NamedRoute {
    // Required method
    fn route_name() -> &'static str;

    // Provided method
    fn get_url<U, I>(
        rmap: &ResourceMap,
        elements: U,
    ) -> Result<String, UrlGenerationError>
       where U: IntoIterator<Item = I>,
             I: AsRef<str> { ... }
}

Required Methods§

Source

fn route_name() -> &'static str

Provided Methods§

Source

fn get_url<U, I>( rmap: &ResourceMap, elements: U, ) -> Result<String, UrlGenerationError>
where U: IntoIterator<Item = I>, I: AsRef<str>,

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§