pub enum StmtKill<Id> {
None,
Read,
Shadow,
DomWrite(Id),
}Expand description
Result of scanning one statement for a name: any-path reads keep the
init alive, shadowing declarations reject, and a dominating simple
assignment kills it. None means the statement neither reads, shadows,
nor dominantly writes the name.
Variants§
Trait Implementations§
impl<Id: Copy> Copy for StmtKill<Id>
impl<Id: Eq> Eq for StmtKill<Id>
impl<Id: PartialEq> StructuralPartialEq for StmtKill<Id>
Auto Trait Implementations§
impl<Id> Freeze for StmtKill<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for StmtKill<Id>where
Id: RefUnwindSafe,
impl<Id> Send for StmtKill<Id>where
Id: Send,
impl<Id> Sync for StmtKill<Id>where
Id: Sync,
impl<Id> Unpin for StmtKill<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for StmtKill<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for StmtKill<Id>where
Id: 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