Method
bang_eq_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 114 | } |
| 115 | |
| 116 | fn bang_eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 117 | if let Some(other_bool) = other.as_any().downcast_ref::<BoolValue>() { |
| 118 | return Ok(Box::new(BoolValue::new(self.value != other_bool.value))); |
| 119 | } |
| 120 | Err("Unexpected type to perform `!=` with".to_string()) |
| 121 | } |
| 122 | |
| 123 | fn group_bang_eq_op( |
| 124 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected