[][src]Struct rustc_hir::AnonConst

pub struct AnonConst {
    pub hir_id: HirId,
    pub body: BodyId,

A constant (expression) that's not an item or associated item, but needs its own DefId for type-checking, const-eval, etc. These are usually found nested inside types (e.g., array lengths) or expressions (e.g., repeat counts), and also used to define explicit discriminant values for enum variants.


hir_id: HirIdbody: BodyId

Trait Implementations

impl Clone for AnonConst[src]

impl Copy for AnonConst[src]

impl Debug for AnonConst[src]

impl<__E: Encoder> Encodable<__E> for AnonConst[src]

impl Eq for AnonConst[src]

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

impl PartialEq<AnonConst> for AnonConst[src]

impl StructuralEq for AnonConst[src]

impl StructuralPartialEq for AnonConst[src]

Auto Trait Implementations

impl RefUnwindSafe for AnonConst

impl Send for AnonConst

impl Sync for AnonConst

impl Unpin for AnonConst

impl UnwindSafe for AnonConst

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> 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.