datex-core 0.0.13

The DATEX Core Rust implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::values::value::borrowed_value::BorrowedValue;
use core::hash::{Hash, Hasher};

impl Hash for BorrowedValue<'_> {
    fn hash<H: Hasher>(&self, state: &mut H) {
        match self {
            BorrowedValue::Core(core_self) => {
                core_self.hash(state);
            }
            BorrowedValue::Native(native_self) => {
                native_self.datex_hash(state);
            }
        }
    }
}