enum VTableMethodSource<'a> {
ImplMethods(IndexVec<TraitMethodId, &'a ImplAssocItem>),
FnTraitShim(&'a ItemRef, TransImplSource, &'a PolyFnSig),
}Expand description
Where the shims stored in a vtable’s method fields come from.
Variants§
ImplMethods(IndexVec<TraitMethodId, &'a ImplAssocItem>)
FnTraitShim(&'a ItemRef, TransImplSource, &'a PolyFnSig)
Auto Trait Implementations§
impl<'a> DynSend for VTableMethodSource<'a>
impl<'a> DynSync for VTableMethodSource<'a>
impl<'a> Freeze for VTableMethodSource<'a>
impl<'a> RefUnwindSafe for VTableMethodSource<'a>
impl<'a> Send for VTableMethodSource<'a>
impl<'a> Sync for VTableMethodSource<'a>
impl<'a> Unpin for VTableMethodSource<'a>
impl<'a> UnsafeUnpin for VTableMethodSource<'a>
impl<'a> UnwindSafe for VTableMethodSource<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more