Struct rustc_typeck::middle::ty::MethodParamUnstable [-] [+] [src]

pub struct MethodParam<'tcx> {
    pub trait_ref: Rc<TraitRef<'tcx>>,
    pub method_num: usize,
    pub impl_def_id: Option<DefId>,
}

Fields

trait_ref
method_num
impl_def_id

The impl for the trait from which the method comes. This should only be used for certain linting/heuristic purposes since there is no guarantee that this is Some in every situation that it could/should be.

Trait Implementations

impl<'tcx> Repr<'tcx> for MethodParam<'tcx>

fn repr(&self, tcx: &ctxt<'tcx>) -> String

Derived Implementations

impl<'tcx> Debug for MethodParam<'tcx>

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl<'tcx> Clone for MethodParam<'tcx>

fn clone(&self) -> MethodParam<'tcx>

fn clone_from(&mut self, source: &Self)