Method
bang_eq_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 94 | } |
| 95 | |
| 96 | fn bang_eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 97 | if let Some(other_text) = other.as_any().downcast_ref::<TextValue>() { |
| 98 | return Ok(Box::new(BoolValue::new(self.value != other_text.value))); |
| 99 | } |
| 100 | Err("Unexpected type to perform `!=` with".to_string()) |
| 101 | } |
| 102 | |
| 103 | fn group_bang_eq_op( |
| 104 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected