ApplyValExt

Trait ApplyValExt 

Source
pub trait ApplyValExt
where Self: Sized,
{ // Required method fn apply_val(&mut self, layer: Option<Self>); }
Expand description

Extension trait to provide apply_val

Required Methods§

Source

fn apply_val(&mut self, layer: Option<Self>)

Merges a T with an Option<T>

Overwrites the lhs if the rhs is Some

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§

Source§

impl<T> ApplyValExt for T