Crate safety_guard

Crate safety_guard 

Source
Expand description

Provides a #[safety] attribute for generating a corresponding section in the documentation and, if provided, checks for a constraint in debug builds.

Attribute Macrosยง

safety
Adds a # Safety section to the documentation of the function and tests the given constraints in debug builds.