Skip to main content

TypeSet

Trait TypeSet 

Source
pub trait TypeSet {
    // Required method
    fn union(self, other: Self) -> Self;
}
Expand description

Trait for set operations on types.

Required Methods§

Source

fn union(self, other: Self) -> Self

Returns the narrowest common supertype of the given types.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§