pub(super) enum Context {
Function {
return_type: Type,
},
Ui,
Action,
StateInit,
}Expand description
What kind of code is being checked, which decides what it may do.
Variants§
Function
A function body; return must produce this type.
Ui
A window or view body: elements, if and for.
Action
A button’s action: statements that may change state.
StateInit
A state’s starting value, which must not read other state.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Context
impl !Sync for Context
impl Freeze for Context
impl RefUnwindSafe for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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