Struct rustc::ty::ParamTy
[−]
[src]
pub struct ParamTy {
pub space: ParamSpace,
pub idx: u32,
pub name: Name,
}Unstable (
rustc_private)Fields
space: ParamSpace
Unstable (
rustc_private)idx: u32
Unstable (
rustc_private)name: Name
Unstable (
rustc_private)Methods
impl<'a, 'gcx, 'tcx> ParamTy[src]
fn new(space: ParamSpace, index: u32, name: Name) -> ParamTy
fn for_self() -> ParamTy
fn for_def(def: &TypeParameterDef) -> ParamTy
fn to_ty(self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Ty<'tcx>
fn is_self(&self) -> bool
Trait Implementations
impl Display for ParamTy[src]
impl Debug for ParamTy[src]
Derived Implementations
impl Hash for ParamTy[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Eq for ParamTy[src]
impl PartialEq for ParamTy[src]
fn eq(&self, __arg_0: &ParamTy) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ParamTy) -> bool
This method tests for !=.
impl Copy for ParamTy[src]
impl Clone for ParamTy[src]
fn clone(&self) -> ParamTy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more