Struct erg_compiler::ownercheck::OwnershipChecker
source · pub struct OwnershipChecker { /* private fields */ }
Expand description
Check code ownership. for example:
- Check if moved variables are not used again.
- Checks whether a mutable reference method is called in an immutable reference method.
Implementations§
Trait Implementations§
source§impl Debug for OwnershipChecker
impl Debug for OwnershipChecker
Auto Trait Implementations§
impl RefUnwindSafe for OwnershipChecker
impl Send for OwnershipChecker
impl Sync for OwnershipChecker
impl Unpin for OwnershipChecker
impl UnwindSafe for OwnershipChecker
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