pub struct ScopeContract<M> { /* private fields */ }Expand description
Typed handle bundle (per SRD-13e §1.2).
The bundle is minimal by design: a handle for each declared
import / export, identified by name. Slot resolution happens
against the compiled program (find_input /
output_map_lookup) rather than through cached indices here.
M is the module-identity phantom — super::Child<P> for
modules built under parent P. Handles issued by one module
can’t be applied to a sibling at the type level.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for ScopeContract<M>
impl<M> RefUnwindSafe for ScopeContract<M>where
Vec<ImportHandle<M>>: RefUnwindSafe,
Vec<ExportHandle<M>>: RefUnwindSafe,
PhantomData<fn() -> M>: RefUnwindSafe,
impl<M> Send for ScopeContract<M>
impl<M> Sync for ScopeContract<M>
impl<M> Unpin for ScopeContract<M>
impl<M> UnsafeUnpin for ScopeContract<M>where
Vec<ImportHandle<M>>: UnsafeUnpin,
Vec<ExportHandle<M>>: UnsafeUnpin,
PhantomData<fn() -> M>: UnsafeUnpin,
impl<M> UnwindSafe for ScopeContract<M>where
Vec<ImportHandle<M>>: UnwindSafe,
Vec<ExportHandle<M>>: UnwindSafe,
PhantomData<fn() -> M>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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