fail - a new error handling story
Contains three parts (only a sketch right now):
- A
Fail
trait andError
type wrapper, which acts as a dynamically dispatched, open sum type match_err!
, a macro to give match-like syntax for downcasting theError
typederive(Fail)
, a derive for making your type an error type
Example use case:
extern crate fail;
extern crate fail_derive; // haven't actually implemented this yet