Skip to main content

LayerMerge

Trait LayerMerge 

Source
pub trait LayerMerge: Sized {
    // Required method
    fn merge(&mut self, other: &Self);

    // Provided method
    fn merge_from(&mut self, other: impl Into<Self>) { ... }
}
Expand description

Layer concatenation.

Required Methods§

Source

fn merge(&mut self, other: &Self)

Appends other into self.

Aperture and tool IDs are remapped to avoid collisions.

Provided Methods§

Source

fn merge_from(&mut self, other: impl Into<Self>)

Converts other into Self and merges it.

Convenience wrapper around merge that accepts any type that can be converted into Self via Into.

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§