viz_core/handler/transform.rs
1/// Then `Transform` trait defines the interface of a handler factory that wraps inner handler to
2/// a Handler during construction.
3pub trait Transform<H> {
4 /// A new handler.
5 type Output;
6
7 /// Transforms `self` and wraps [`Handler`][super::Handler] to a new handler.
8 #[must_use]
9 fn transform(&self, h: H) -> Self::Output;
10}