datex-core 0.0.13

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

impl TryClone for String {
    fn try_clone(&self) -> Result<Value, ()> {
        Ok(CoreValue::Text(self.clone().into()).into())
    }
}