datex_core/values/value/ops/neg.rs
1use core::ops::Neg;
2
3use crate::values::{value::Value, value_container::error::ValueError};
4
5impl Neg for Value {
6 type Output = Result<Value, ValueError>;
7
8 fn neg(self) -> Self::Output {
9 match self {
10 Value::Core(core_value) => (-core_value).map(Value::Core),
11 Value::Native(_native_value) => {
12 todo!()
13 }
14 }
15 }
16}