Method
eq_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 52 | } |
| 53 | |
| 54 | fn eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 55 | if let Some(other_text) = other.as_any().downcast_ref::<DateTimeValue>() { |
| 56 | let are_equals = self.value == other_text.value; |
| 57 | return Ok(Box::new(BoolValue { value: are_equals })); |
| 58 | } |
| 59 | Err("Unexpected type to perform `=` with".to_string()) |
| 60 | } |
| 61 | |
| 62 | fn group_eq_op( |
| 63 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected