Discriminant in core::mem - Rust (original) (raw)
Struct Discriminant
1.21.0 · Source
pub struct Discriminant<T>(/* private fields */);
Expand description
Opaque type representing the discriminant of an enum.
See the discriminant function in this module for more information.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient, and should not be overridden without very good reason.