natter/src/intermediate/italic.rs

22 lines
463 B
Rust
Raw Normal View History

use super::macros::intermediate;
use super::IObject;
2023-10-30 02:31:29 +00:00
use crate::error::CustomError;
2023-10-27 21:48:19 +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 })
});