yew_router_nested::router

Trait RedirectFn

Source
pub trait RedirectFn<SW, STATE>: Fn(Route<STATE>) -> SW { }
Expand description

Redirection function that takes a route that didn’t match any of the Switch variants, and converts it to a switch variant.

Implementors§

Source§

impl<T, SW, STATE> RedirectFn<SW, STATE> for T
where T: Fn(Route<STATE>) -> SW,