Skip to main content

IntoRoutes

Trait IntoRoutes 

Source
pub trait IntoRoutes<St: State, In> {
    // Required method
    fn routes(self) -> Vec<Route<St, In>>;
}
Expand description

Convert object to a vec of routes

Required Methods§

Source

fn routes(self) -> Vec<Route<St, In>>

Convert into a list of routes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<St: State, In, T, const N: usize> IntoRoutes<St, In> for [T; N]
where T: Into<Route<St, In>>,

Source§

fn routes(self) -> Vec<Route<St, In>>

Source§

impl<St: State, In> IntoRoutes<St, In> for Vec<Route<St, In>>

Source§

fn routes(self) -> Vec<Route<St, In>>

Source§

impl<St: State, U, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> IntoRoutes<St, U> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static, T2: Into<Route<St, U>> + 'static, T3: Into<Route<St, U>> + 'static, T4: Into<Route<St, U>> + 'static, T5: Into<Route<St, U>> + 'static, T6: Into<Route<St, U>> + 'static, T7: Into<Route<St, U>> + 'static, T8: Into<Route<St, U>> + 'static, T9: Into<Route<St, U>> + 'static, T10: Into<Route<St, U>> + 'static, T11: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> IntoRoutes<St, U> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static, T2: Into<Route<St, U>> + 'static, T3: Into<Route<St, U>> + 'static, T4: Into<Route<St, U>> + 'static, T5: Into<Route<St, U>> + 'static, T6: Into<Route<St, U>> + 'static, T7: Into<Route<St, U>> + 'static, T8: Into<Route<St, U>> + 'static, T9: Into<Route<St, U>> + 'static, T10: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> IntoRoutes<St, U> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static, T2: Into<Route<St, U>> + 'static, T3: Into<Route<St, U>> + 'static, T4: Into<Route<St, U>> + 'static, T5: Into<Route<St, U>> + 'static, T6: Into<Route<St, U>> + 'static, T7: Into<Route<St, U>> + 'static, T8: Into<Route<St, U>> + 'static, T9: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T0, T1, T2, T3, T4, T5, T6, T7, T8> IntoRoutes<St, U> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static, T2: Into<Route<St, U>> + 'static, T3: Into<Route<St, U>> + 'static, T4: Into<Route<St, U>> + 'static, T5: Into<Route<St, U>> + 'static, T6: Into<Route<St, U>> + 'static, T7: Into<Route<St, U>> + 'static, T8: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T0, T1, T2, T3, T4, T5, T6, T7> IntoRoutes<St, U> for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static, T2: Into<Route<St, U>> + 'static, T3: Into<Route<St, U>> + 'static, T4: Into<Route<St, U>> + 'static, T5: Into<Route<St, U>> + 'static, T6: Into<Route<St, U>> + 'static, T7: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T0, T1, T2, T3, T4, T5, T6> IntoRoutes<St, U> for (T0, T1, T2, T3, T4, T5, T6)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static, T2: Into<Route<St, U>> + 'static, T3: Into<Route<St, U>> + 'static, T4: Into<Route<St, U>> + 'static, T5: Into<Route<St, U>> + 'static, T6: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T0, T1, T2, T3, T4, T5> IntoRoutes<St, U> for (T0, T1, T2, T3, T4, T5)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static, T2: Into<Route<St, U>> + 'static, T3: Into<Route<St, U>> + 'static, T4: Into<Route<St, U>> + 'static, T5: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T0, T1, T2, T3, T4> IntoRoutes<St, U> for (T0, T1, T2, T3, T4)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static, T2: Into<Route<St, U>> + 'static, T3: Into<Route<St, U>> + 'static, T4: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T0, T1, T2, T3> IntoRoutes<St, U> for (T0, T1, T2, T3)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static, T2: Into<Route<St, U>> + 'static, T3: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T0, T1, T2> IntoRoutes<St, U> for (T0, T1, T2)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static, T2: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T0, T1> IntoRoutes<St, U> for (T0, T1)
where T0: Into<Route<St, U>> + 'static, T1: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Source§

impl<St: State, U, T> IntoRoutes<St, U> for (T,)
where T: Into<Route<St, U>> + 'static,

Source§

fn routes(self) -> Vec<Route<St, U>>

Implementors§

Source§

impl<St: State, In> IntoRoutes<St, In> for Route<St, In>