pub fn sub_word(a: Word, b: Word) -> Result<Word, RuntimeError>
Expand description
Subtract two checked words. Might wrap if overflow
The function is inlined so it will be optimized to a + b
if optimized
feature is enabled so
the operation is unchecked.
This should be used in contexts that are checked and guaranteed by the protocol to never overflow, but then they might due to some bug in the code.