pub struct GoInteropContract {
pub declared: Type,
pub instantiated: Type,
pub hints: Vec<GoHint>,
}Fields§
§declared: Type§instantiated: Type§hints: Vec<GoHint>Implementations§
Source§impl GoInteropContract
impl GoInteropContract
pub fn new(declared: &Type, instantiated: &Type, hints: &[GoHint]) -> Self
pub fn return_contract<'a>( &self, lookup: impl Fn(&str) -> Option<&'a Definition>, ) -> GoReturnContract
pub fn permits_nullable_lift<'a>( &self, implementation_return: &Type, lookup: impl Fn(&str) -> Option<&'a Definition>, ) -> bool
Trait Implementations§
Source§impl Clone for GoInteropContract
impl Clone for GoInteropContract
Auto Trait Implementations§
impl Forget for GoInteropContract
impl Freeze for GoInteropContractwhere
*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<GoHint>: Freeze,
impl Move for GoInteropContract
impl RefUnwindSafe for GoInteropContract
impl Send for GoInteropContract
impl Sync for GoInteropContract
impl Unpin for GoInteropContract
impl UnsafeUnpin for GoInteropContractwhere
*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<GoHint>: UnsafeUnpin,
impl UnwindSafe for GoInteropContractwhere
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