Expand description
This module reexports the primitive types to allow usage that is not possibly shadowed by other declared types.
This is normally only useful in macro generated code.
An example of this is when generating a new struct and an impl for it:
Note that the SOME_PROPERTY
associated constant would not compile, as its
type bool
refers to the struct, rather than to the primitive bool type.
A correct implementation could look like:
We also used ::core
instead of core
, because core
can be
shadowed, too. Paths, starting with ::
, are searched in
the extern prelude since Edition 2018.