pub struct ThreadSafetyInfo {
pub is_thread_safe: bool,
pub race_conditions: Vec<(String, String)>,
pub atomic_ops_needed: Vec<String>,
}Expand description
Thread-safety analysis result for a parallel region.
Fields§
§is_thread_safe: boolWhether the region is provably free of data races.
race_conditions: Vec<(String, String)>Pairs of (write, read/write) accesses that may race.
atomic_ops_needed: Vec<String>Variables that need atomic operations to be safe.
Implementations§
Trait Implementations§
Source§impl Clone for ThreadSafetyInfo
impl Clone for ThreadSafetyInfo
Source§fn clone(&self) -> ThreadSafetyInfo
fn clone(&self) -> ThreadSafetyInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadSafetyInfo
impl Debug for ThreadSafetyInfo
Auto Trait Implementations§
impl Freeze for ThreadSafetyInfo
impl RefUnwindSafe for ThreadSafetyInfo
impl Send for ThreadSafetyInfo
impl Sync for ThreadSafetyInfo
impl Unpin for ThreadSafetyInfo
impl UnsafeUnpin for ThreadSafetyInfo
impl UnwindSafe for ThreadSafetyInfo
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