pub trait Discriminant<D> {
// Required method
fn discriminant(&self) -> D;
}
Available on crate feature
next
only.Expand description
Discriminant defines types that may contain a one-of value determined according to the discriminant, and exposes the value of the discriminant for that type, such as in an XDR union.