Struct rustc_middle::ty::sty::ParamConst[][src]

pub struct ParamConst {
    pub index: u32,
    pub name: Symbol,
}

Fields

index: u32name: Symbol

Implementations

impl ParamConst[src]

pub fn new(index: u32, name: Symbol) -> ParamConst[src]

pub fn for_def(def: &GenericParamDef) -> ParamConst[src]

Trait Implementations

impl Clone for ParamConst[src]

impl Copy for ParamConst[src]

impl Debug for ParamConst[src]

impl<'tcx, __D: TyDecoder<'tcx>> Decodable<__D> for ParamConst[src]

impl Display for ParamConst[src]

impl<'tcx, __E: TyEncoder<'tcx>> Encodable<__E> for ParamConst[src]

impl Eq for ParamConst[src]

impl Hash for ParamConst[src]

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for ParamConst[src]

impl<'tcx> Lift<'tcx> for ParamConst[src]

type Lifted = Self

impl Ord for ParamConst[src]

impl PartialEq<ParamConst> for ParamConst[src]

impl PartialOrd<ParamConst> for ParamConst[src]

impl<'tcx, P: PrettyPrinter<'tcx>> Print<'tcx, P> for ParamConst[src]

type Output = P

type Error = Error

impl StructuralEq for ParamConst[src]

impl StructuralPartialEq for ParamConst[src]

impl<'tcx> TypeFoldable<'tcx> for ParamConst[src]

Auto Trait Implementations

impl RefUnwindSafe for ParamConst

impl Send for ParamConst

impl Sync for ParamConst

impl Unpin for ParamConst

impl UnwindSafe for ParamConst

Blanket Implementations

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

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy
[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> MaybeResult<T> for T[src]

type Error = !

impl<'tcx, T> Subst<'tcx> for T where
    T: TypeFoldable<'tcx>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<T> WithConstness for T[src]