hocon_rs/raw/add_assign.rs
1use derive_more::{Constructor, Deref, DerefMut};
2
3use crate::raw::raw_value::RawValue;
4use std::fmt::{Display, Formatter};
5
6#[derive(Debug, Clone, PartialEq, Eq, Hash, Deref, DerefMut, Constructor)]
7pub struct AddAssign(Box<RawValue>);
8
9impl Display for AddAssign {
10 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
11 write!(f, "{}", self.0)
12 }
13}
14
15impl From<AddAssign> for RawValue {
16 fn from(val: AddAssign) -> Self {
17 *val.0
18 }
19}