2023-10-31 23:57:04 +00:00
|
|
|
use super::macros::intermediate;
|
|
|
|
use super::IObject;
|
2023-10-30 02:31:29 +00:00
|
|
|
|
2023-10-29 21:29:16 +00:00
|
|
|
use crate::error::CustomError;
|
2023-10-27 21:48:19 +00:00
|
|
|
|
2023-10-31 23:57:04 +00:00
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
pub(crate) struct IItalic {
|
|
|
|
pub(crate) children: Vec<IObject>,
|
|
|
|
}
|
|
|
|
|
|
|
|
intermediate!(IItalic, Italic, original, registry, {
|
|
|
|
let children = {
|
|
|
|
let mut ret = Vec::new();
|
|
|
|
for obj in original.children.iter() {
|
|
|
|
ret.push(IObject::new(registry.clone(), obj).await?);
|
|
|
|
}
|
|
|
|
ret
|
|
|
|
};
|
|
|
|
|
|
|
|
Ok(IItalic { children })
|
|
|
|
});
|