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