Struct rustc_trans::middle::traits::VtableObjectDataUnstable [-] [+] [src]

pub struct VtableObjectData<'tcx> {
    pub object_ty: &'tcx TyS<'tcx>,
    pub upcast_trait_ref: Binder<Rc<TraitRef<'tcx>>>,
}

A vtable for some object-safe trait Foo automatically derived for the object type Foo.

Fields

object_ty

the object type Foo.

upcast_trait_ref

Foo upcast to the obligation trait. This will be some supertrait of Foo.

Trait Implementations

impl<'tcx> Debug for VtableObjectData<'tcx>

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

impl<'tcx> Repr<'tcx> for VtableObjectData<'tcx>

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

impl<'tcx> TypeFoldable<'tcx> for VtableObjectData<'tcx>

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

Derived Implementations

impl<'tcx> Clone for VtableObjectData<'tcx>

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

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

impl<'tcx> Eq for VtableObjectData<'tcx>

impl<'tcx> PartialEq<VtableObjectData<'tcx>> for VtableObjectData<'tcx>

fn eq(&self, __arg_0: &VtableObjectData<'tcx>) -> bool

fn ne(&self, __arg_0: &VtableObjectData<'tcx>) -> bool