Skip to content

Instantly share code, notes, and snippets.

@hclarke
Created May 10, 2021 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hclarke/f4551966a35b2d9b4d42cdc7398923e3 to your computer and use it in GitHub Desktop.
Save hclarke/f4551966a35b2d9b4d42cdc7398923e3 to your computer and use it in GitHub Desktop.
pub trait Parser<'a,I:?Sized> {
type O;
fn parse(&self, ctx: &Context<'a,I>, src: &mut &'a [u8]) -> Option<Self::O>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment