1.21.0[][src]Struct std::mem::Discriminant

pub struct Discriminant<T>(_, _);

Opaque type representing the discriminant of an enum.

See the discriminant function in this module for more information.

Trait Implementations

impl<T> Hash for Discriminant<T>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> Debug for Discriminant<T>[src]

impl<T> Eq for Discriminant<T>[src]

impl<T> PartialEq<Discriminant<T>> for Discriminant<T>[src]

fn ne(&self, other: &Rhs) -> bool

This method tests for !=.

impl<T> Copy for Discriminant<T>[src]

impl<T> Clone for Discriminant<T>[src]

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Send for Discriminant<T>

impl<T> Sync for Discriminant<T>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 

impl<T> Borrow for T where
    T: ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> ToOwned for T where
    T: Clone

type Owned = T