Skip to main content

SharedNiching

Trait SharedNiching 

Source
pub unsafe trait SharedNiching<N1, N2> { }
Expand description

Trait to allow NichedOption<Self, N1> to be niched further by N2.

§Safety

Implementors must ensure that the memory regions within Self that are used for Niching impls of N1 and N2 are mutually exclusive.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§