Method
bang_eq_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 82 | } |
| 83 | |
| 84 | fn bang_eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 85 | if let Some(other_text) = other.as_any().downcast_ref::<TimeValue>() { |
| 86 | let are_equals = self.value != other_text.value; |
| 87 | return Ok(Box::new(BoolValue { value: are_equals })); |
| 88 | } |
| 89 | Err("Unexpected type to perform `!=` with".to_string()) |
| 90 | } |
| 91 | |
| 92 | fn group_bang_eq_op( |
| 93 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected