pub trait Layer<R> {
    type Output;

    // Required method
    fn layer(&self, inner: R) -> Self::Output;
}
Expand description

Decorates an object by wrapping it within another type.

Required Associated Types§

source

type Output

The output type after wrapping.

Required Methods§

source

fn layer(&self, inner: R) -> Self::Output

Wraps inner based on this layer.

Implementors§

source§

impl<R> Layer<R> for FilterLayer

§

type Output = Filter<R>

source§

impl<R> Layer<R> for PrefixLayer

§

type Output = Prefix<R>