Skip to main content

ComplementOf

Trait ComplementOf 

Source
pub trait ComplementOf<Other: ActiveSet>: Sealed + ActiveSet { }
Expand description

Proof that Self and Other are complements: disjoint AND covering all lanes.

This is THE key safety trait. merge(a, b) requires A: ComplementOf<B>. Only implemented for valid complement pairs — the compiler rejects invalid merges.

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§