metrics_util::layers

Trait Layer

Source
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§