1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::values::core_value::CoreValue; use core::ops::Not; impl Not for CoreValue { type Output = Option<CoreValue>; fn not(self) -> Self::Output { match self { CoreValue::Boolean(bool) => Some(CoreValue::Boolean(!bool)), _ => None, // Not applicable for other types } } }