Struct erg_compiler::effectcheck::SideEffectChecker
source · pub struct SideEffectChecker { /* private fields */ }
Expand description
Checks code for side effects. For example:
- check if expressions with side effects are not used in functions
- check if methods that change internal state are not defined in immutable classes
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SideEffectChecker
impl Send for SideEffectChecker
impl Sync for SideEffectChecker
impl Unpin for SideEffectChecker
impl UnwindSafe for SideEffectChecker
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