datex-core 0.0.12

The DATEX Core Rust implementation
Documentation
use crate::{
    traits::{structural_eq::StructuralEq, value_eq::ValueEq},
    values::value::Value,
};

/// Two values are structurally equal, if their inner values are structurally equal, regardless
/// of the actual_type of the values
impl StructuralEq for Value {
    fn structural_eq(&self, other: &Self) -> bool {
        self.inner.structural_eq(&other.inner)
    }
}

/// Value equality corresponds to partial equality:
/// Both type and inner value are the same
impl ValueEq for Value {
    fn value_eq(&self, other: &Self) -> bool {
        self == other
    }
}