Created
June 25, 2014 05:19
-
-
Save wycats/c672b11df7a35deb3bf2 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
trait Matcher<T, U> { | |
fn matches(&self, actual: T) -> Result<U, ()>; | |
fn didnt_match(&self, actual: T, failure: U) -> MatchError; | |
fn did_match(&self, actual: T, failure: U) -> MatchError; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment