datex_core/values/value/try_clone.rs
1use crate::{traits::try_clone::TryClone, values::value::Value};
2
3impl TryClone for Value {
4 fn try_clone(&self) -> Result<Value, ()> {
5 match self {
6 Value::Core(core_value_with_classification) => {
7 core_value_with_classification.try_clone()
8 }
9 Value::Native(native) => native.try_clone(),
10 }
11 }
12}