datex-core 0.0.13

The DATEX Core Rust implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{traits::try_clone::TryClone, values::value::Value};

impl TryClone for Value {
    fn try_clone(&self) -> Result<Value, ()> {
        match self {
            Value::Core(core_value_with_classification) => {
                core_value_with_classification.try_clone()
            }
            Value::Native(native) => native.try_clone(),
        }
    }
}