natter/src/intermediate/inline_source_block.rs

20 lines
497 B
Rust
Raw Normal View History

2023-10-27 17:48:19 -04:00
use crate::error::CustomError;
use super::registry::Registry;
#[derive(Debug)]
2023-10-29 10:44:32 -04:00
pub(crate) struct IInlineSourceBlock {
pub(crate) value: String,
}
2023-10-27 17:48:19 -04:00
impl IInlineSourceBlock {
2023-10-29 12:15:07 -04:00
pub(crate) async fn new<'intermediate, 'parse>(
registry: &mut Registry<'intermediate, 'parse>,
2023-10-27 17:48:19 -04:00
original: &organic::types::InlineSourceBlock<'parse>,
) -> Result<IInlineSourceBlock, CustomError> {
2023-10-29 10:44:32 -04:00
Ok(IInlineSourceBlock {
value: original.value.to_owned(),
})
2023-10-27 17:48:19 -04:00
}
}