[][src]Function dart_sys::Dart_FunctionOwner

pub unsafe extern "C" fn Dart_FunctionOwner(
    function: Dart_Handle
) -> Dart_Handle

Returns a handle to the owner of a function.

The owner of an instance method or a static method is its defining class. The owner of a top-level function is its defining library. The owner of the function of a non-implicit closure is the function of the method or closure that defines the non-implicit closure.

\return A valid handle to the owner of the function, or an error handle if the argument is not a valid handle to a function.