Enum rustc_lint::middle::ty::ImplOrTraitItemUnstable [-] [+] [src]

pub enum ImplOrTraitItem<'tcx> {
    MethodTraitItem(Rc<Method<'tcx>>),
    TypeTraitItem(Rc<AssociatedType>),
}

Variants

MethodTraitItem
TypeTraitItem

Methods

impl<'tcx> ImplOrTraitItem<'tcx>

fn def_id(&self) -> DefId

fn name(&self) -> Name

fn container(&self) -> ImplOrTraitItemContainer

fn as_opt_method(&self) -> Option<Rc<Method<'tcx>>>

Trait Implementations

Derived Implementations

impl<'tcx> Debug for ImplOrTraitItem<'tcx>

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

impl<'tcx> Clone for ImplOrTraitItem<'tcx>

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

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