pub trait HasRoute {
    // Required methods
    fn route(&self) -> &Route;
    fn route_mut(&mut self) -> &mut Route;
}
Expand description

A trait that should be implemented by structs to indicate it has Routes

Required Methods§

source

fn route(&self) -> &Route

Return a reference to the Route of the struct that implements this trait

source

fn route_mut(&mut self) -> &mut Route

Return a mutable reference to the Route of the struct that implements this trait

Implementors§