datex-core 0.0.14

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::{
        core_value::CoreValue, core_values::boolean::Boolean, value::Value,
    },
};

impl TryClone for bool {
    fn try_clone(&self) -> Result<Value, ()> {
        Ok(CoreValue::Boolean(Boolean(*self)).into())
    }
}