datex-core 0.0.14

The DATEX Core Rust implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use core::ops::Neg;

use crate::values::{value::Value, value_container::error::ValueError};

impl Neg for Value {
    type Output = Result<Value, ValueError>;

    fn neg(self) -> Self::Output {
        match self {
            Value::Core(core_value) => (-core_value).map(Value::Core),
            Value::Native(_native_value) => {
                todo!()
            }
        }
    }
}