natter/src/intermediate/footnote_definition.rs

17 lines
513 B
Rust
Raw Normal View History

2023-10-27 21:08:58 +00:00
use crate::error::CustomError;
use super::registry::Registry;
#[derive(Debug)]
pub(crate) struct IFootnoteDefinition {}
impl IFootnoteDefinition {
2023-10-29 16:15:07 +00:00
pub(crate) async fn new<'intermediate, 'parse>(
registry: &mut Registry<'intermediate, 'parse>,
2023-10-29 16:31:48 +00:00
original: &'intermediate organic::types::FootnoteDefinition<'parse>,
2023-10-27 21:08:58 +00:00
) -> Result<IFootnoteDefinition, CustomError> {
2023-10-29 16:31:48 +00:00
registry.register_footnote_definition(original.label, &original.children);
2023-10-27 21:08:58 +00:00
Ok(IFootnoteDefinition {})
}
}