Trait BuildExt

Source
pub trait BuildExt: Sized {
    // Provided method
    fn with<U>(self, item: impl FnOnce(Self) -> U) -> U { ... }
}
Expand description

A helper trait for composing routers with generated routes.

Provided Methods§

Source

fn with<U>(self, item: impl FnOnce(Self) -> U) -> U

Apply item to the current router, returning the new router.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Sized> BuildExt for T