pub enum EventKind {
Use,
Write,
Shadow,
Opaque,
}Variants§
Use
变量读(VarRef)
Write
显式局部写(赋值目标 / 自增自减目标 / 声明 / ForEach 绑定)
Shadow
同名遮蔽(VarDecl / ForEach / Catch 声明)
Opaque
不透明区域(Raw 不可解析原文):读写集未知——一切“零用途/ 单用途/无写“的证明失效,规则必须保守拒绝(对抗波 3 抓获: 仅被 RAW 引用的变量被误删 + 值被提前传播越过 RAW 赋值)。
Trait Implementations§
impl Copy for EventKind
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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