pub enum Effect {
Pure,
Io,
Alloc,
Panic,
}Expand description
the four effect annotations. this is the parser’s record of which keyword
appeared (is pure etc.); the type checker’s effects module (Phase 3)
owns the real effect lattice and inference.
Variants§
Pure
is pure – only computes; no IO, no allocation, no panic.
Io
is io – may perform input/output.
Alloc
is alloc – may allocate.
Panic
is panic – may panic.
Trait Implementations§
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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