Expand description
Tagging is meant to be used in tests only, but because [cfg(test)] cannot
be exported we’re using the closest build configuration option within the
implementation, which is [cfg(debug_assertions)]. As an additional safety
measure, the tagged::init() function must be called
before using the tagged::Tagged type.
Structs§
- Tagged
- As much as faking random(-ish) data for tests is pretty convenient, deciphering assertion failures is not so much.
- Type
NotFound
Functions§
- init
- Does nothing outside Debug builds.This function must be called before using the
Taggedtype, and if one then wants to see the tags instd::fmt::Debugoutput for each type that derivestagged_debug_derive::TaggedDebug.You need to make sure to call this function at least once. Subsequent calls will have no effect.