Method
lte_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 230 | } |
| 231 | |
| 232 | fn lte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 233 | if let Some(other_text) = other.as_any().downcast_ref::<TextValue>() { |
| 234 | return Ok(Box::new(BoolValue::new(self.value <= other_text.value))); |
| 235 | } |
| 236 | Err("Unexpected type to perform `<=` with".to_string()) |
| 237 | } |
| 238 | |
| 239 | fn group_lte_op( |
| 240 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected