[−][src]Struct rustc_mir_build::build::ScopeId

pub(in build) struct ScopeId {
    private: u32,
}

Fields

private: u32

Implementations

impl ScopeId[src]

pub(in build) const MAX_AS_U32: u32[src]

pub(in build) const MAX: Self[src]

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

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

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

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

Extracts the value of this index as an integer.

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

Extracts the value of this index as a u32.

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

Extracts the value of this index as a usize.

Trait Implementations

impl Add<usize> for ScopeId[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for ScopeId[src]

impl Copy for ScopeId[src]

impl Debug for ScopeId[src]

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

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

impl Eq for ScopeId[src]

impl From<ScopeId> for u32[src]

impl From<ScopeId> for usize[src]

impl From<u32> for ScopeId[src]

impl From<usize> for ScopeId[src]

impl Hash for ScopeId[src]

impl Idx for ScopeId[src]

impl Ord for ScopeId[src]

impl PartialEq<ScopeId> for ScopeId[src]

impl PartialOrd<ScopeId> for ScopeId[src]

impl Step for ScopeId[src]

impl StructuralEq for ScopeId[src]

impl StructuralPartialEq for ScopeId[src]

Auto Trait Implementations

impl RefUnwindSafe for ScopeId

impl Send for ScopeId

impl Sync for ScopeId

impl Unpin for ScopeId

impl UnwindSafe for ScopeId

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.