use crate::error::CustomError; /// The supporting information used for converting the parsed org source representation into the intermediate representation used in this project. #[derive(Debug, Clone)] pub(crate) struct IntermediateContext<'orig, 'parse> { pub(crate) registry: crate::intermediate::RefRegistry<'orig, 'parse>, } impl<'orig, 'parse> IntermediateContext<'orig, 'parse> { pub(crate) fn new( registry: crate::intermediate::RefRegistry<'orig, 'parse>, ) -> Result, CustomError> { Ok(IntermediateContext { registry }) } }