pub trait Union {
// Required method
fn union(&self, other: Self) -> Self;
}
Expand description
Create a union
between two vectors.
Returns a new vector by joining with other, excluding any duplicates and preserving
the order from the original vector.
Required Methods§
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.