pub trait Source<System> {
type Target: 'static;
// Required method
fn into_unsafe_cell_hunk<C>(
self,
cfg: &mut Cfg<'_, C>
) -> Hunk<System, UnsafeCell<MaybeUninit<Self::Target>>>
where C: CfgBase<System = System>;
}
Available on crate feature
sync
only.Expand description
Required Associated Types§
Required Methods§
sourcefn into_unsafe_cell_hunk<C>(
self,
cfg: &mut Cfg<'_, C>
) -> Hunk<System, UnsafeCell<MaybeUninit<Self::Target>>>where
C: CfgBase<System = System>,
fn into_unsafe_cell_hunk<C>( self, cfg: &mut Cfg<'_, C> ) -> Hunk<System, UnsafeCell<MaybeUninit<Self::Target>>>where C: CfgBase<System = System>,
Construct a Hunk
to store the value.
Self::Target
in the returned Hunk
is safe to access from executable
objects through MaybeUninit
. The client may grant mutable access to
Self::Target
through UnsafeCell
while observing the borrow rules.