Skip to main content

bool_value

Function bool_value 

Source
pub fn bool_value(v: &CodeValue, op: &str) -> bool
Expand description

Coerce v to a bool the way a boolean operator does, raising the same fatal error a type mismatch would in .code source itself (op is the operator name, used only for that error message — e.g. "&&").