pub struct LockRegion {
pub lock_name: String,
pub start_index: usize,
pub end_index: usize,
}Expand description
Represents a locked code region.
Fields§
§lock_name: StringName of the lock variable
start_index: usizeStarting statement index (lock call)
end_index: usizeEnding statement index (unlock call)
Trait Implementations§
Source§impl Clone for LockRegion
impl Clone for LockRegion
Source§fn clone(&self) -> LockRegion
fn clone(&self) -> LockRegion
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 LockRegion
impl Debug for LockRegion
Source§impl PartialEq for LockRegion
impl PartialEq for LockRegion
impl Eq for LockRegion
impl StructuralPartialEq for LockRegion
Auto Trait Implementations§
impl Freeze for LockRegion
impl RefUnwindSafe for LockRegion
impl Send for LockRegion
impl Sync for LockRegion
impl Unpin for LockRegion
impl UnwindSafe for LockRegion
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