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§