Files
natter/src/intermediate/section.rs
fluxcdbot 05c7ecde82
Some checks failed
format Build format has succeeded
clippy Build clippy has failed
rust-test Build rust-test has failed
build Build build has succeeded
CI: autofix rust code.
2026-07-11 22:20:00 +00:00

32 lines
750 B
Rust

use super::IElement;
use super::macros::intermediate;
use crate::error::CustomError;
use organic::types::StandardProperties;
#[derive(Debug, Clone)]
pub(crate) struct ISection {
pub(crate) children: Vec<IElement>,
pub(crate) post_blank: organic::types::PostBlank,
}
intermediate!(
ISection,
&'orig organic::types::Section<'parse>,
original,
intermediate_context,
{
let children = {
let mut ret = Vec::new();
for elem in original.children.iter() {
ret.push(IElement::new(intermediate_context.clone(), elem).await?);
}
ret
};
Ok(ISection {
children,
post_blank: original.get_post_blank(),
})
}
);