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

pub struct ParamTy {
    pub index: u32,
    pub name: Symbol,


index: u32name: Symbol


impl<'tcx> ParamTy[src]

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

pub fn for_self() -> ParamTy[src]

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

pub fn to_ty(self, tcx: TyCtxt<'tcx>) -> Ty<'tcx>[src]

Trait Implementations

impl Clone for ParamTy[src]

impl Copy for ParamTy[src]

impl Debug for ParamTy[src]

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

impl Display for ParamTy[src]

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

impl Eq for ParamTy[src]

impl Hash for ParamTy[src]

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

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

type Lifted = Self

impl Ord for ParamTy[src]

impl PartialEq<ParamTy> for ParamTy[src]

impl PartialOrd<ParamTy> for ParamTy[src]

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

type Output = P

type Error = Error

impl StructuralEq for ParamTy[src]

impl StructuralPartialEq for ParamTy[src]

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

Auto Trait Implementations

impl RefUnwindSafe for ParamTy

impl Send for ParamTy

impl Sync for ParamTy

impl Unpin for ParamTy

impl UnwindSafe for ParamTy

Blanket Implementations

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

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy

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

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

impl<'a, T> Captures<'a> 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<'tcx, T> Subst<'tcx> for T where
    T: TypeFoldable<'tcx>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

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.

impl<T> WithConstness for T[src]