iai_callgrind::client_requests::memcheck

Function check_value_is_defined

source
pub fn check_value_is_defined<T>(value: &T) -> usize
Available on crate feature client_requests_defs only.
Expand description

Use this macro to force the definedness and addressibility of a value to be checked.

If suitable addressibility and definedness are not established, Valgrind prints an error message and returns the address of the first offending byte. Otherwise, it returns zero.