22 lines
482 B
Rust
22 lines
482 B
Rust
use super::macros::intermediate;
|
|
|
|
use super::IElement;
|
|
use crate::error::CustomError;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub(crate) struct IQuoteBlock {
|
|
pub(crate) children: Vec<IElement>,
|
|
}
|
|
|
|
intermediate!(IQuoteBlock, QuoteBlock, original, registry, {
|
|
let children = {
|
|
let mut ret = Vec::new();
|
|
for obj in original.children.iter() {
|
|
ret.push(IElement::new(registry.clone(), obj).await?);
|
|
}
|
|
ret
|
|
};
|
|
|
|
Ok(IQuoteBlock { children })
|
|
});
|