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§
Auto Trait Implementations§
impl Freeze for MultiThread
impl !RefUnwindSafe for MultiThread
impl Send for MultiThread
impl Sync for MultiThread
impl Unpin for MultiThread
impl !UnwindSafe 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