-
Notifications
You must be signed in to change notification settings - Fork 811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement nom traits for more slices, not just byte slices
This can be useful in cases where you already have an in-memory flat representation, but want to use Nom to traverse it in a custom order. This has a few opinionated decisions: - `InputIter` is only implemented when `T: Copy`. This could easily be relaxed to `T: Clone`, but that could be surprising if T is expensive to clone. - `Compare` is only implemented when `T: Eq`. This could be relaxed to PartialEq.
- Loading branch information
Showing
2 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
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
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