struct Shared<'a> {
input: &'a str,
part_two: bool,
done: AtomicBool,
counter: AtomicI32,
mutex: Mutex<Exclusive>,
}
Expand description
Atomics can be safely shared between threads.
Fields§
§input: &'a str
§part_two: bool
§done: AtomicBool
§counter: AtomicI32
§mutex: Mutex<Exclusive>
Auto Trait Implementations§
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