[][src]Type Definition kul_core::premade::inmem::TopFormResult

type TopFormResult<'input, 'alloc, 'funs, 'bind, Extra = (), CombinerError = ()> = ParseIterItem<DatumAllocator<'input, 'alloc, Extra>, OperatorBindings<'input, 'alloc, 'funs, 'bind, Extra, CombinerError>>;

The Result of parsing a top-level form, and the type of items yielded by parse_text_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.