Function mentat_ffi::typed_value_into_boolean [] [src]

#[no_mangle]
pub unsafe extern "C" fn typed_value_into_boolean(
    typed_value: *mut Binding
) -> i32

Consumes a Binding and returns the value as a boolean represented as an i32. If the value of the boolean is true the value returned is 1. If the value of the boolean is false the value returned is 0.

Panics

If the ValueType of the Binding is not ValueType::Long.