pub fn validate_non_zero(
value: &BigInt,
_operation: &str,
) -> Result<(), MathError>Expand description
Validate that a value is not zero (for operations that require non-zero inputs).
§Arguments
value- The value to check_operation- Description of the operation requiring non-zero input (currently unused)
§Returns
Returns Ok(()) if the value is non-zero, or an error otherwise.
§Errors
Returns MathError::DivisionByZero if the value is zero.