Function validate_range
Source pub fn validate_range<T>(value: T, min: T, max: T) -> SubXResult<()>
Expand description
Validate that a number is within a specified range.
§Arguments
value - The value to validate
min - Minimum allowed value (inclusive)
max - Maximum allowed value (inclusive)
§Errors
Returns error if the value is outside the specified range.