Function mentat_ffi::value_at_index [] [src]

#[no_mangle]
pub unsafe extern "C" fn value_at_index(
    values: *mut Vec<Binding>,
    index: c_int
) -> *mut Binding

Returns the value at the provided index as a Binding. If there is no value present at the index, a null pointer is returned.

Safety

Callers are responsible for managing the memory for the return value. A destructor typed_value_destroy is provided for releasing the memory for this pointer type.