Created
November 20, 2019 03:00
-
-
Save anacrolix/50a5714744c060a7a920b829f9e08a64 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro_rules! handle { | |
($value:expr, $err:ident,$onerr:expr) => { | |
match $value { | |
Ok(ok) => ok, | |
Err($err) => $onerr, | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment