You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only reason it exists is because we need a ParserFn to be stored in Dialect::ops, and I couldn't figure out a way to store a pointer to a function that takes no argument and returns Box<dyn Parser<StateStream<'a>, Output = Self::Parsed, PartialState = ()> + 'a> . So ParserFn takes a dummy &() argument, and hence Parsable::parser_fn exists.
The text was updated successfully, but these errors were encountered:
The only reason it exists is because we need a
ParserFn
to be stored inDialect::ops
, and I couldn't figure out a way to store a pointer to a function that takes no argument and returnsBox<dyn Parser<StateStream<'a>, Output = Self::Parsed, PartialState = ()> + 'a>
. SoParserFn
takes a dummy&()
argument, and henceParsable::parser_fn
exists.The text was updated successfully, but these errors were encountered: