pub struct Contributed<C> {
pub module: ModuleInfo,
pub value: Arc<C>,
}Expand description
A value contributed with ModuleBuilder::contribute
and the module that contributed it.
Fields§
§module: ModuleInfoThe contributing module.
value: Arc<C>The contributed value.
Trait Implementations§
Source§impl<C> Clone for Contributed<C>
impl<C> Clone for Contributed<C>
Auto Trait Implementations§
impl<C> Forget for Contributed<C>
impl<C> Freeze for Contributed<C>
impl<C> Move for Contributed<C>
impl<C> RefUnwindSafe for Contributed<C>where
Arc<C>: RefUnwindSafe,
impl<C> Send for Contributed<C>
impl<C> Sync for Contributed<C>
impl<C> Unpin for Contributed<C>
impl<C> UnsafeUnpin for Contributed<C>where
Arc<C>: UnsafeUnpin,
impl<C> UnwindSafe for Contributed<C>where
Arc<C>: 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