Enum rustc_trans::middle::ty::MethodOriginUnstable [-] [+] [src]

pub enum MethodOrigin<'tcx> {
    MethodStatic(DefId),
    MethodStaticClosure(DefId),
    MethodTypeParam(MethodParam<'tcx>),
    MethodTraitObject(MethodObject<'tcx>),
}

Variants

MethodStatic
MethodStaticClosure
MethodTypeParam
MethodTraitObject

Trait Implementations

impl<'tcx> tr for MethodOrigin<'tcx>

fn tr(&self, dcx: &DecodeContext) -> MethodOrigin<'tcx>

impl<'tcx> TypeFoldable<'tcx> for MethodOrigin<'tcx>

fn fold_with<F>(&self, folder: &mut F) -> MethodOrigin<'tcx> where F: TypeFolder<'tcx>

impl<'tcx> Repr<'tcx> for MethodOrigin<'tcx>

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

Derived Implementations

impl<'tcx> Debug for MethodOrigin<'tcx>

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

impl<'tcx> Clone for MethodOrigin<'tcx>

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

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