Struct wast::parser::ParseBuffer  [−][src]
pub struct ParseBuffer<'a> { /* fields omitted */ }A low-level buffer of tokens which represents a completely lexed file.
A ParseBuffer will immediately lex an entire file and then store all
tokens internally. A ParseBuffer only used to pass to the top-level
parse function.
Implementations
impl ParseBuffer<'_>[src]
impl ParseBuffer<'_>[src]pub fn new(input: &str) -> Result<ParseBuffer<'_>>[src]
Creates a new ParseBuffer by lexing the given input completely.
Errors
Returns an error if input fails to lex.