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.

1.21.0 · Source§

1.21.0 · Source§

1.21.0 · Source§

1.21.0 · Source§

Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

1.21.0 · Source§

1.21.0 · Source§