Struct rustc::middle::ty::TraitRefExperimental [-]  [+] [src]

pub struct TraitRef {
    pub def_id: DefId,
    pub substs: Substs,
}

Fields

def_id
substs

Methods

impl TraitRef

fn new(def_id: DefId, substs: Substs) -> TraitRef

fn self_ty(&self) -> t

fn input_types(&self) -> &[t]

Trait Implementations

impl TypeFoldable for TraitRef

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

impl Repr for TraitRef

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

impl UserString for TraitRef

fn user_string(&self, tcx: &ctxt) -> String

Derived Implementations

impl Show for TraitRef

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

impl<__S: Writer> Hash<__S> for TraitRef

fn hash(&self, __arg_0: &mut __S)

impl Eq for TraitRef

fn assert_receiver_is_total_eq(&self)

impl PartialEq for TraitRef

fn eq(&self, __arg_0: &TraitRef) -> bool

fn ne(&self, __arg_0: &TraitRef) -> bool

impl Clone for TraitRef

fn clone(&self) -> TraitRef

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