Struct rustc_target::abi::VariantIdx[][src]

pub struct VariantIdx {
    private: u32,


private: u32


impl VariantIdx[src]

pub const MAX_AS_U32: u32[src]

pub const MAX: Self[src]

pub const fn from_usize(value: usize) -> Self[src]

pub const fn from_u32(value: u32) -> Self[src]

pub const unsafe fn from_u32_unchecked(value: u32) -> Self[src]

pub const fn index(self) -> usize[src]

Extracts the value of this index as an integer.

pub const fn as_u32(self) -> u32[src]

Extracts the value of this index as a u32.

pub const fn as_usize(self) -> usize[src]

Extracts the value of this index as a usize.

Trait Implementations

impl Add<usize> for VariantIdx[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for VariantIdx[src]

impl Copy for VariantIdx[src]

impl Debug for VariantIdx[src]

impl<D: Decoder> Decodable<D> for VariantIdx[src]

impl<E: Encoder> Encodable<E> for VariantIdx[src]

impl Eq for VariantIdx[src]

impl From<u32> for VariantIdx[src]

impl From<usize> for VariantIdx[src]

impl Hash for VariantIdx[src]

impl<__CTX> HashStable<__CTX> for VariantIdx where
    __CTX: HashStableContext

impl Idx for VariantIdx[src]

impl Ord for VariantIdx[src]

impl PartialEq<VariantIdx> for VariantIdx[src]

impl PartialOrd<VariantIdx> for VariantIdx[src]

impl Step for VariantIdx[src]

impl StructuralEq for VariantIdx[src]

impl StructuralPartialEq for VariantIdx[src]

Auto Trait Implementations

impl RefUnwindSafe for VariantIdx

impl Send for VariantIdx

impl Sync for VariantIdx

impl Unpin for VariantIdx

impl UnwindSafe for VariantIdx

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.