pub struct MultiThread { /* private fields */ }Implementations§
Source§impl MultiThread
impl MultiThread
pub fn new(n_threads: NonZeroUsize) -> MultiThread
pub fn new_current_thread() -> MultiThread
pub fn run<F>(&self, job: F)
Trait Implementations§
Source§impl Drop for MultiThread
impl Drop for MultiThread
Auto Trait Implementations§
impl !RefUnwindSafe for MultiThread
impl !UnwindSafe for MultiThread
impl Freeze for MultiThread
impl Send for MultiThread
impl Sync for MultiThread
impl Unpin for MultiThread
impl UnsafeUnpin for MultiThread
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