Struct r3::sync::source::DefaultSource
source · pub struct DefaultSource<T>(_);
Available on crate feature
sync
only.Expand description
A Source
that provides a hunk initialized by
Default::default
.
Trait Implementations§
source§impl<System, T> Source<System> for DefaultSource<T>where
System: KernelBase + KernelStatic,
T: 'static + Default + Send,
impl<System, T> Source<System> for DefaultSource<T>where System: KernelBase + KernelStatic, T: 'static + Default + Send,
type Target = T
source§const fn into_unsafe_cell_hunk<C>(
self,
cfg: &mut Cfg<'_, C>
) -> Hunk<System, UnsafeCell<MaybeUninit<Self::Target>>>where
C: CfgBase<System = System>,
const 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. Read more