[][src]Module kul_core::datum

Datum type used in the abstract syntax tree (AST) returned by parsing.

Modules

premade

Implementations provided for ready use.

Enums

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 Datums in an AST. It can also be used for DAGs.

Traits

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 Datums. DerefMut must never fail, so it can't be used. We want mutability of Datums 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.