Function kfl::decode_with_context

source ·
pub fn decode_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