Function effect_pure
Source pub fn effect_pure<T: Send + 'static>(value: T) -> AnalysisEffect<T>
Expand description
Create an effect from a pure value (no I/O).
This is useful for wrapping pure computations in the effect system.
§Example
ⓘlet effect = effect_pure(42);
assert_eq!(effect.run(&env).unwrap(), 42);