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§
fn route_name() -> &'static str
Provided Methods§
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.