MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / interval_value_or_error_f64

Function interval_value_or_error_f64

crates/gitql-ast/src/interval.rs:142–147  ·  view source on GitHub ↗
(value: f64)

Source from the content-addressed store, hash-verified

140}
141
142fn interval_value_or_error_f64(value: f64) -> Result<f64, String> {
143 if (-INTERVAL_MAX_VALUE_F..=INTERVAL_MAX_VALUE_F).contains(&value) {
144 return Ok(value);
145 }
146 Err("Interval value out of range".to_string())
147}

Callers 4

addMethod · 0.85
subMethod · 0.85
mulMethod · 0.85
divMethod · 0.85

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…