Skip to content

Instantly share code, notes, and snippets.

@tbillington
Created August 18, 2014 17:48
Show Gist options
  • Save tbillington/97d3b2f69304c82fdc61 to your computer and use it in GitHub Desktop.
Save tbillington/97d3b2f69304c82fdc61 to your computer and use it in GitHub Desktop.
fn line_type_from_reg<T>(line: &str, x:fn(&str) -> Option<T>) -> LineType {
match x(line) {
Some(y) => Failed,
None => Failed,
}
Failed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment