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
pub trait HasRoute {
// Required methods
fn route(&self) -> &Route;
fn route_mut(&mut self) -> &mut Route;
}
A trait that should be implemented by structs to indicate it has Routes