Trait LayerExt

Source
pub trait LayerExt: Sized {
    // Required method
    fn get_layer(&mut self) -> &mut Layer;

    // Provided method
    fn layer(self, layer: impl Into<Layer>) -> Self { ... }
}

Required Methods§

Source

fn get_layer(&mut self) -> &mut Layer

Provided Methods§

Source

fn layer(self, layer: impl Into<Layer>) -> Self

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§