pub struct Dirty<T> { /* private fields */ }Expand description
Dirty wraps a value of type T with functions similiar to that of a Read/Write lock but simply sets a dirty flag on write(), reset on clear(). Use read() or deref (*dirty_variable) to access the inner value.
Implementations§
Trait Implementations§
Source§impl<T: Ord> Ord for Dirty<T>
impl<T: Ord> Ord for Dirty<T>
Source§impl<T: PartialOrd> PartialOrd for Dirty<T>
impl<T: PartialOrd> PartialOrd for Dirty<T>
impl<T: Copy> Copy for Dirty<T>
impl<T: Eq> Eq for Dirty<T>
impl<T> StructuralPartialEq for Dirty<T>
Auto Trait Implementations§
impl<T> Freeze for Dirty<T>where
T: Freeze,
impl<T> RefUnwindSafe for Dirty<T>where
T: RefUnwindSafe,
impl<T> Send for Dirty<T>where
T: Send,
impl<T> Sync for Dirty<T>where
T: Sync,
impl<T> Unpin for Dirty<T>where
T: Unpin,
impl<T> UnwindSafe for Dirty<T>where
T: UnwindSafe,
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