pub struct CompiledRoute {
pub pattern: &'static str,
pub method: &'static str,
pub param_count: usize,
pub param_names: &'static [&'static str],
}
Expand description
Example of compile-time route generation
This demonstrates how we could generate optimized route matching at compile time instead of runtime.
Fields§
§pattern: &'static str
§method: &'static str
§param_count: usize
§param_names: &'static [&'static str]
Implementations§
Auto Trait Implementations§
impl Freeze for CompiledRoute
impl RefUnwindSafe for CompiledRoute
impl Send for CompiledRoute
impl Sync for CompiledRoute
impl Unpin for CompiledRoute
impl UnwindSafe for CompiledRoute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more