pub struct EraserState {
pub candidate_set: Option<BTreeSet<usize>>,
pub race_reported: bool,
pub last_writer: Option<usize>,
pub has_write: bool,
}Expand description
Eraser algorithm state for a single memory location.
Fields§
§candidate_set: Option<BTreeSet<usize>>Current candidate lock set C(v): intersection of all observed lock sets.
race_reported: boolWhether a data race has been reported.
last_writer: Option<usize>Last writer thread.
has_write: boolLast access was a write.
Implementations§
Source§impl EraserState
impl EraserState
Trait Implementations§
Source§impl Clone for EraserState
impl Clone for EraserState
Source§fn clone(&self) -> EraserState
fn clone(&self) -> EraserState
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 EraserState
impl Debug for EraserState
Auto Trait Implementations§
impl Freeze for EraserState
impl RefUnwindSafe for EraserState
impl Send for EraserState
impl Sync for EraserState
impl Unpin for EraserState
impl UnsafeUnpin for EraserState
impl UnwindSafe for EraserState
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