pub trait ExchangeFrom<Src, Index> {
// Required method
fn exchange_from(src: Src) -> Self;
}
Expand description
Constructs an enum from one of its variants, or from an enum composed of a subset of its variants.
Required Methods§
fn exchange_from(src: Src) -> Self
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.