use crate::error::Res; use crate::parser::OrgSource; mod context; mod exiting; mod file_access_interface; mod global_settings; mod list; mod parser_with_context; pub type RefContext<'b, 'g, 'r, 's> = &'b Context<'g, 'r, 's>; pub trait ContextMatcher = for<'b, 'g, 'r, 's> Fn( RefContext<'b, 'g, 'r, 's>, OrgSource<'s>, ) -> Res, OrgSource<'s>>; pub type DynContextMatcher<'c> = dyn ContextMatcher + 'c; pub trait Matcher = for<'s> Fn(OrgSource<'s>) -> Res, OrgSource<'s>>; #[allow(dead_code)] pub type DynMatcher<'c> = dyn Matcher + 'c; pub use context::Context; pub use context::ContextElement; pub use context::ExitMatcherNode; pub use exiting::ExitClass; pub use file_access_interface::FileAccessInterface; pub use file_access_interface::LocalFileAccessInterface; pub use global_settings::GlobalSettings; pub use list::List; pub(crate) use parser_with_context::parser_with_context;