Struct rustc::middle::ty::TraitRef[src]

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

Fields

def_id
substs

Trait Implementations

impl TypeFoldable for TraitRef

fn fold_with<F: TypeFolder>(&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<__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