Function phoenix_lang::utils::to_bool

source ·
pub fn to_bool(arg: &Value) -> Result<bool, String>
Expand description

Convert arg to a bool and do some error checks (without casting)