Skip to main content

Merge

Trait Merge 

Source
pub trait Merge<T> {
    // Required method
    fn merge(&self, other: T) -> Self;
}
Expand description

Trait for merging styles together.

Required Methods§

Source

fn merge(&self, other: T) -> Self

Merge another style into this one, with other taking precedence.

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§