[][src]Type Definition kul::common::stream::TopFormResult

type TopFormResult<Extra = (), CombinerError = ()> = ParseIterItem<DatumAllocator<Extra>, OperatorBindings<Extra, CombinerError>>;

The Result of parsing a top-level form, and the type of elements returned by parse_stream and parse_stream_with.

An Ok value contains a Datum value that is the AST (abstract syntax tree) of the parsed top-level form.

An Err value contains an Error value variant that describes the error caused by either a syntax error in the input or by one of your Combiner functions returning a value of your chosen CombinerError type parameter.