parse_with_context

Function parse_with_context 

Source
pub fn parse_with_context<T, S, F>(
    file_name: &str,
    text: &str,
    set_ctx: F,
) -> Result<T, Error>
where F: FnOnce(&mut Context<S>), T: DecodeChildren<S>, S: Span,
Expand description

Parse KDL text and decode Rust object providing extra context for the decoder