Method
lt_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 196 | } |
| 197 | |
| 198 | fn lt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 199 | if let Some(other_text) = other.as_any().downcast_ref::<TextValue>() { |
| 200 | return Ok(Box::new(BoolValue::new(self.value < other_text.value))); |
| 201 | } |
| 202 | Err("Unexpected type to perform `<` with".to_string()) |
| 203 | } |
| 204 | |
| 205 | fn group_lt_op( |
| 206 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected