pub struct InterfaceConversion {
pub source: Type,
pub target: Type,
pub source_shape: Type,
pub target_interface: Option<Type>,
pub witness: Option<ConformanceWitness>,
}Expand description
A value converted to an interface type, with the conformance the checker selected.
Fields§
§source: Type§target: Type§source_shape: Type§target_interface: Option<Type>§witness: Option<ConformanceWitness>Absent when the target requires no method, or when the source is no named type or type parameter.
Trait Implementations§
Source§impl Clone for InterfaceConversion
impl Clone for InterfaceConversion
Auto Trait Implementations§
impl Forget for InterfaceConversion
impl Freeze for InterfaceConversionwhere
*const ArcInner<Box<[Type]>> is !null: Freeze,
PhantomData<ArcInner<Box<[Type]>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<FunctionType> is !null: Freeze,
PhantomData<ArcInner<FunctionType>>: Freeze,
PhantomData<Type>: Freeze,
*const Type is !null: Freeze,
*const ArcInner<Spelling> is !null: Freeze,
PhantomData<ArcInner<Spelling>>: Freeze,
PhantomData<CheckedMethod>: Freeze,
impl Move for InterfaceConversion
impl RefUnwindSafe for InterfaceConversion
impl Send for InterfaceConversion
impl Sync for InterfaceConversion
impl Unpin for InterfaceConversion
impl UnsafeUnpin for InterfaceConversionwhere
*const ArcInner<Box<[Type]>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Box<[Type]>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<FunctionType> is !null: UnsafeUnpin,
PhantomData<ArcInner<FunctionType>>: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
*const ArcInner<Spelling> is !null: UnsafeUnpin,
PhantomData<ArcInner<Spelling>>: UnsafeUnpin,
PhantomData<CheckedMethod>: UnsafeUnpin,
impl UnwindSafe for InterfaceConversionwhere
Arc<Box<[Type]>>: UnwindSafe,
NonNull<u8>: UnwindSafe,
Arc<FunctionType>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
Arc<Spelling>: UnwindSafe,
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