use super::macros::intermediate; use super::IObject; use crate::error::CustomError; #[derive(Debug, Clone)] pub(crate) struct IItalic { pub(crate) children: Vec, } intermediate!( IItalic, &'orig organic::types::Italic<'parse>, 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 }) } );