[][src]Struct rustc::traits::VtableObjectData

pub struct VtableObjectData<'tcx, N> {
    pub upcast_trait_ref: PolyTraitRef<'tcx>,
    pub vtable_base: usize,
    pub nested: Vec<N>,
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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

Fields

upcast_trait_ref: PolyTraitRef<'tcx>
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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

vtable_base: usize
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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>
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Trait Implementations

impl<'tcx, N: Clone> Clone for VtableObjectData<'tcx, N>[src]

impl<'tcx, N: Debug> Debug for VtableObjectData<'tcx, N>[src]

impl<'tcx, N: Decodable> Decodable for VtableObjectData<'tcx, N>[src]

impl<'tcx, N: Encodable> Encodable for VtableObjectData<'tcx, N>[src]

impl<'tcx, N: Eq> Eq for VtableObjectData<'tcx, N>[src]

impl<'tcx, '__ctx, N> HashStable<StableHashingContext<'__ctx>> for VtableObjectData<'tcx, N> where
    N: HashStable<StableHashingContext<'__ctx>>, 
[src]

impl<'tcx, N: PartialEq> PartialEq<VtableObjectData<'tcx, N>> for VtableObjectData<'tcx, N>[src]

impl<'tcx, N> StructuralEq for VtableObjectData<'tcx, N>[src]

impl<'tcx, N> StructuralPartialEq for VtableObjectData<'tcx, N>[src]

impl<'tcx, N> TypeFoldable<'tcx> for VtableObjectData<'tcx, N> where
    N: TypeFoldable<'tcx>, 
[src]

Auto Trait Implementations

impl<'tcx, N> !RefUnwindSafe for VtableObjectData<'tcx, N>

impl<'tcx, N> !Send for VtableObjectData<'tcx, N>

impl<'tcx, N> !Sync for VtableObjectData<'tcx, N>

impl<'tcx, N> Unpin for VtableObjectData<'tcx, N> where
    N: Unpin

impl<'tcx, N> !UnwindSafe for VtableObjectData<'tcx, N>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

impl<E> SpecializationError for E[src]

impl<'tcx, T> Subst<'tcx> for T where
    T: TypeFoldable<'tcx>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]