Method
lte_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 250 | } |
| 251 | |
| 252 | fn lte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 253 | if let Some(other_bool) = other.as_any().downcast_ref::<BoolValue>() { |
| 254 | return Ok(Box::new(BoolValue::new(self.value <= other_bool.value))); |
| 255 | } |
| 256 | Err("Unexpected type to perform `<=` with".to_string()) |
| 257 | } |
| 258 | |
| 259 | fn group_lte_op( |
| 260 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected