Datum type used in the abstract syntax tree (AST) returned by parsing.
premade | Implementations provided for ready use.
|
Datum | The abstract syntax tree (AST) type returned by parsing. It is extensible
by the ExtraType parameter, and it is parameterized over the DatumRef
type used to refer to the other Datum s in an AST. It can also be used for
DAGs.
|
DerefTryMut | Exists to be used similarly to but differently than
DerefMut so that
types like Rc and its
get_mut
method can be used to hold Datum s. DerefMut must
never fail, so it can't be used. We want mutability of Datum s so that we
can construct lists of them using only the
space of the values allocated by a Parser 's
DatumAllocator , since this crate is intended
to be usable in no_std environments which don't provide heap allocation.
|