Method
gte_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 189 | } |
| 190 | |
| 191 | fn gte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 192 | if let Some(other_bool) = other.as_any().downcast_ref::<FloatValue>() { |
| 193 | let value = self.value >= other_bool.value; |
| 194 | return Ok(Box::new(BoolValue::new(value))); |
| 195 | } |
| 196 | Err("Unexpected type to perform `>` with".to_string()) |
| 197 | } |
| 198 | |
| 199 | fn group_gte_op( |
| 200 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected