Struct erg_compiler::effectcheck::SideEffectChecker
source · pub struct SideEffectChecker<'c> { /* 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<'c> Freeze for SideEffectChecker<'c>
impl<'c> !RefUnwindSafe for SideEffectChecker<'c>
impl<'c> Send for SideEffectChecker<'c>
impl<'c> Sync for SideEffectChecker<'c>
impl<'c> Unpin for SideEffectChecker<'c>
impl<'c> !UnwindSafe for SideEffectChecker<'c>
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