pub struct ShimSig<'tcx, const ARGS: usize> {
pub abi: ExternAbi,
pub args: [Ty<'tcx>; ARGS],
pub ret: Ty<'tcx>,
pub c_variadic: bool,
}Expand description
Describes the expected signature of a shim.
Fields§
§abi: ExternAbi§args: [Ty<'tcx>; ARGS]§ret: Ty<'tcx>§c_variadic: boolImplementations§
Auto Trait Implementations§
impl<'tcx, const ARGS: usize> !RefUnwindSafe for ShimSig<'tcx, ARGS>
impl<'tcx, const ARGS: usize> !UnwindSafe for ShimSig<'tcx, ARGS>
impl<'tcx, const ARGS: usize> DynSend for ShimSig<'tcx, ARGS>where
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: DynSend,
impl<'tcx, const ARGS: usize> DynSync for ShimSig<'tcx, ARGS>where
Interned<'tcx, WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>>: DynSync,
impl<'tcx, const ARGS: usize> Forget for ShimSig<'tcx, ARGS>
impl<'tcx, const ARGS: usize> Freeze for ShimSig<'tcx, ARGS>where
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: Freeze,
impl<'tcx, const ARGS: usize> Move for ShimSig<'tcx, ARGS>
impl<'tcx, const ARGS: usize> Send for ShimSig<'tcx, ARGS>where
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: Send,
impl<'tcx, const ARGS: usize> Sync for ShimSig<'tcx, ARGS>where
AdtDef<'tcx>: Sync,
GenericArgs<'tcx>: Sync,
DefId: Sync,
Ty<'tcx>: Sync,
Interned<'tcx, WithCachedTypeInfo<ConstKind<TyCtxt<'tcx>>>>: Sync,
Pattern<'tcx>: Sync,
Interned<'tcx, RegionKind<TyCtxt<'tcx>>>: Sync,
&'tcx RawList<(), BoundVariableKind<TyCtxt<'tcx>>>: Sync,
&'tcx RawList<(), Ty<'tcx>>: Sync,
&'tcx RawList<(), Binder<TyCtxt<'tcx>, ExistentialPredicate<TyCtxt<'tcx>>>>: Sync,
ParamTy: Sync,
ErrorGuaranteed: Sync,
InternalBitFlags: Sync,
impl<'tcx, const ARGS: usize> Unpin for ShimSig<'tcx, ARGS>where
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: Unpin,
impl<'tcx, const ARGS: usize> UnsafeUnpin for ShimSig<'tcx, ARGS>where
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: UnsafeUnpin,
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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.