MergeComponent

Trait MergeComponent 

Source
pub trait MergeComponent: Component<Mutability = Mutable> {
    // Required method
    fn merge(&mut self, other: Self);
}
Expand description

Any Component which can be merged with itself.

See Merge<T> for detailed usage and examples.

Required Methods§

Source

fn merge(&mut self, other: Self)

Merges the contents of other into this Component.

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§