Method
eq_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 69 | } |
| 70 | |
| 71 | fn eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 72 | if let Some(other_text) = other.as_any().downcast_ref::<DateValue>() { |
| 73 | return Ok(Box::new(BoolValue::new( |
| 74 | self.timestamp == other_text.timestamp, |
| 75 | ))); |
| 76 | } |
| 77 | Err("Unexpected type to perform `=` with".to_string()) |
| 78 | } |
| 79 | |
| 80 | fn group_eq_op( |
| 81 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected