(self, other: Self)
| 480 | } |
| 481 | |
| 482 | fn concat(self, other: Self) -> ValueResult<Self> { |
| 483 | match (self, other) { |
| 484 | (DataValue::I64(lhs), DataValue::I64(rhs)) => Ok(DataValue::I128( |
| 485 | (((lhs as u64) as u128) | (((rhs as u64) as u128) << 64)) as i128, |
| 486 | )), |
| 487 | (lhs, rhs) => unimplemented!("concat: {} -> {}", lhs.ty(), rhs.ty()), |
| 488 | } |
| 489 | } |
| 490 | |
| 491 | fn is_negative(&self) -> ValueResult<bool> { |
| 492 | match self { |