Method
bang_eq_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 105 | } |
| 106 | |
| 107 | fn bang_eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 108 | if let Some(other_text) = other.as_any().downcast_ref::<DateValue>() { |
| 109 | return Ok(Box::new(BoolValue::new( |
| 110 | self.timestamp != other_text.timestamp, |
| 111 | ))); |
| 112 | } |
| 113 | Err("Unexpected type to perform `!=` with".to_string()) |
| 114 | } |
| 115 | |
| 116 | fn group_bang_eq_op( |
| 117 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected