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