KeyNotFound
eff KeyNotFoundSourceEffect for signaling that a key was not found.
Useful for instances of Index or IndexMut.
Effect for signaling that a key was not found, and its functions.
Operations
Definitions
@Experimental Handles the KeyNotFound effect of the given function f by converting
key-not-found errors to Result values.
Returns Ok(f(x)) if the computation completes successfully.
Returns Err(msg) if the computation raises keyNotFound(msg).