std::marker::DiscriminantKind - Rust
Description: API documentation for the Rust `DiscriminantKind` trait in crate `std`.
Keywords: rust, rustlang, rust-lang, DiscriminantKind

# [−][src]Trait std::marker::DiscriminantKind

    #[lang = "discriminant_kind"]pub trait DiscriminantKind {
        type Discriminant: Clone + PartialEq<Self::Discriminant> + Eq + Send + Copy + Sync + Unpin + Debug + Hash;
    }

🔬 This is a nightly-only experimental API. (`discriminant_kind`)

this trait is unlikely to ever be stabilized, use `mem::discriminant` instead

Compiler-internal trait used to indicate the type of enum discriminants.

This trait is automatically implemented for every type and does not add any guarantees to `mem::Discriminant`. It is undefined behavior to transmute between `DiscriminantKind::Discriminant` and `mem::Discriminant`.

## Associated Types

### `type Discriminant: Clone + PartialEq<Self::Discriminant> + Eq + Send + Copy + Sync + Unpin + Debug + Hash`[src]

🔬 This is a nightly-only experimental API. (`discriminant_kind`)

this trait is unlikely to ever be stabilized, use `mem::discriminant` instead

The type of the discriminant, which must satisfy the trait bounds required by `mem::Discriminant`.

Loading content...

## Implementors

Loading content...