py_applydict method

bool py_applydict(
  1. py_Ref self,
  2. Pointer<NativeFunction<Bool Function(py_Name name, py_Ref val, Pointer<Void> ctx)>> f,
  3. Pointer<Void> ctx
)

Apply a function to all items in the object's __dict__. Return true if the function is successful for all items. NOTE: Be careful if f modifies the object's __dict__.

Implementation

bool py_applydict(
  py_Ref self,
  ffi.Pointer<
          ffi.NativeFunction<
              ffi.Bool Function(
                  py_Name name, py_Ref val, ffi.Pointer<ffi.Void> ctx)>>
      f,
  ffi.Pointer<ffi.Void> ctx,
) {
  return _py_applydict(
    self,
    f,
    ctx,
  );
}