datex-core 0.0.14

The DATEX Core Rust implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use alloc::rc::Rc;

use crate::{
    shared_values::{SharedContainer, traits::_ExposeRcInternal},
    traits::identity::Identity,
};
/// Two references are identical if they point to the same inner value (Rc pointer equality)
impl Identity for SharedContainer {
    fn identical(&self, other: &Self) -> bool {
        Rc::ptr_eq(self.get_rc_internal(), other.get_rc_internal())
    }
}