Crate pathfinder_tagged

Crate pathfinder_tagged 

Source
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.
TypeNotFound

Functions§

init
Does nothing outside Debug builds.This function must be called before using the Tagged type, and if one then wants to see the tags in std::fmt::Debug output for each type that derives tagged_debug_derive::TaggedDebug.You need to make sure to call this function at least once. Subsequent calls will have no effect.