pub struct UsingClone<T>(/* private fields */)
where
T: Clone + 'static;Expand description
Using variant that creates instances of each thread by cloning an initial value.
Trait Implementationsยง
Sourceยงimpl<T> Using for UsingClone<T>where
T: Clone + 'static,
impl<T> Using for UsingClone<T>where
T: Clone + 'static,
Sourceยงfn create(&self, _: usize) -> T
fn create(&self, _: usize) -> T
Creates an instance of the variable to be used by the
thread_idx-th thread.Sourceยงfn into_inner(self) -> <UsingClone<T> as Using>::Item
fn into_inner(self) -> <UsingClone<T> as Using>::Item
Consumes self and creates exactly one instance of the variable.
impl<T> Sync for UsingClone<T>where
T: Clone + 'static,
Auto Trait Implementationsยง
impl<T> Freeze for UsingClone<T>where
T: Freeze,
impl<T> RefUnwindSafe for UsingClone<T>where
T: RefUnwindSafe,
impl<T> Send for UsingClone<T>where
T: Send,
impl<T> Unpin for UsingClone<T>where
T: Unpin,
impl<T> UnwindSafe for UsingClone<T>where
T: 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