pub fn violation_count() -> u32
Returns the count of allocation warnings emitted so far.
Only available when the warn_debug or warn release features are enabled.
warn_debug
warn release