Closed ferristseng closed 4 years ago
The Sink type is private, but parse_html returns a Parser<Sink> type.
Sink
parse_html
Parser<Sink>
This makes it impossible to reference the return type in a struct:
struct App { config: Config, current_parser: Option<Parser<Sink>>, // <-- Can't do this buffer: [u8; 1024], counter: usize, }
The
Sink
type is private, butparse_html
returns aParser<Sink>
type.This makes it impossible to reference the return type in a struct: