Created
March 16, 2015 21:42
-
-
Save aturon/9f29e9edae931b87a84d to your computer and use it in GitHub Desktop.
This file contains 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
fn nonparametric<T: 'static>(t: T) { | |
let b: Box<Any> = box t; | |
match b.downcast::<SomeConcreteType>() { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment