Struct rustc_trait_selection::traits::ImplSourceObjectData [−][src]
pub struct ImplSourceObjectData<'tcx, N> {
pub upcast_trait_ref: Binder<'tcx, TraitRef<'tcx>>,
pub vtable_base: usize,
pub nested: Vec<N, Global>,
}Fields
upcast_trait_ref: Binder<'tcx, TraitRef<'tcx>>Expand description
Foo upcast to the obligation trait. This will be some supertrait of Foo.
vtable_base: usizeExpand description
The vtable is formed by concatenating together the method lists of
the base object trait and all supertraits; this is the start of
upcast_trait_ref’s methods in that vtable.
nested: Vec<N, Global>Auto Trait Implementations
impl<'tcx, N> !RefUnwindSafe for ImplSourceObjectData<'tcx, N>
impl<'tcx, N> !Send for ImplSourceObjectData<'tcx, N>
impl<'tcx, N> !Sync for ImplSourceObjectData<'tcx, N>
impl<'tcx, N> Unpin for ImplSourceObjectData<'tcx, N> where
N: Unpin,
N: Unpin,
impl<'tcx, N> !UnwindSafe for ImplSourceObjectData<'tcx, N>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<'tcx, T> Subst<'tcx> for T where
T: TypeFoldable<'tcx>, [src]
impl<'tcx, T> Subst<'tcx> for T where
T: TypeFoldable<'tcx>, [src]pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T[src]
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
fn subst(self, tcx: TyCtxt<'tcx>, substs: &[GenericArg<'tcx>]) -> Self[src]
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]