pub fn validate_range(value: u64, min: u64, max: u64, name: &str) -> Result<()>
Check that a value falls within an expected range (inclusive).