Method
gt_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 128 | } |
| 129 | |
| 130 | fn gt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 131 | if let Some(other_text) = other.as_any().downcast_ref::<TextValue>() { |
| 132 | return Ok(Box::new(BoolValue::new(self.value > other_text.value))); |
| 133 | } |
| 134 | Err("Unexpected type to perform `>` with".to_string()) |
| 135 | } |
| 136 | |
| 137 | fn group_gt_op( |
| 138 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected