Skip to main content

parse_lc_config

Function parse_lc_config 

Source
pub fn parse_lc_config<T, F>(
    value: &Value,
    parse_effect: &F,
) -> Result<LcSingleActionConfig<T>, String>
where T: LcEntityType, F: Fn(&Value) -> Result<Box<dyn LcAction<T>>, String>,
Expand description

Finalizes a HOCON value into a typed [LcConfig<T>] by invoking parse_effect on the effect value. The closure owns all effect-type knowledge — the library only handles the collision-kind plumbing.