Add more run-time assertions
Add more run-time assertions during various parts of the code.
Example:
let a = 3;
let b = 1 + 2;
debug_assert_eq!(a, b);
https://doc.rust-lang.org/std/macro.debug_assert.html https://doc.rust-lang.org/std/macro.debug_assert_eq.html https://doc.rust-lang.org/std/macro.debug_assert_ne.html