pub trait Primitive { }
Expand description

A trait with no methods which is implemented for all primitive types.

Importantly this trait is not implemented for Traces (or Records), to stop the compiler from trying to evaluate nested Traces of Traces or Records of Records as Numeric types. There is no reason to create a Trace of a Trace or Record of a Record, it won’t do anything a Trace or Record can’t except use more memory.

The boilerplate implementations for primitives is performed with a macro. If a primitive type is missing from this list, please open an issue to add it in.

Implementations on Foreign Types

Implementors