utils_box_debug/
lib.rs

1//! # Summary
2//! A toolbox library that holds a useful collection of small unitilies written in Rust that make our life easier when writting Rust applications.
3//!
4//! # Utilities provided:
5//!
6//! ## Debug
7//! Print in log or stdout debug information from vectors, hashmaps in a human readable way.
8//! Pause execution at specific moments to make debugging easier.
9//!
10//! Mininal Example:
11//! ```ignore
12//!     
13//!     // Complex data operations before [..]
14//!
15//!     let data: Vec<f64> = (0..100).iter().map(|&x| x * f64::PI).collect();
16//!
17//!     // Print debug information from data vector
18//!     vector_display(&data[0..10],"Mult_PI", IdxMode::Based1);
19//!     // Pause execution to check values
20//!     pause();
21//!
22//!     // Complex data operations after [..]
23//!
24//! ```
25//!
26
27#[cfg(not(tarpaulin_include))]
28pub mod debug;