Skip to content

Commit

Permalink
Public type parser
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 12, 2016
1 parent 3941509 commit 32a112e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ mod parsing {
unwrap("item", item::parsing::item(input))
}

pub fn parse_type(input: &str) -> Result<Ty, String> {
unwrap("type", ty::parsing::ty(input))
}

pub fn parse_path(input: &str) -> Result<Path, String> {
unwrap("path", ty::parsing::path(input))
}
Expand Down

0 comments on commit 32a112e

Please sign in to comment.