Module dart_api

Module dart_api 

Source
Expand description

Functionality for calling Dart DL API from Rust.

Functions§

delete_persistent_handle
Deallocates the provided Dart_PersistentHandle.
get_error
Returns the error message from the provided Dart error handle.
handle_from_persistent
Allocates a Dart_Handle in the current scope from the given Dart_PersistentHandle.
initialize_api
Initializes usage of Dynamically Linked Dart API.
is_error
Checks whether the provided Dart_Handle represents a Dart error.
new_finalizable_handle
Allocates a finalizable handle for an object.
new_persistent_handle
Allocates a Dart_PersistentHandle for provided Dart_Handle.
post_c_object
Posts a message on some port. It will contain a Dart_CObject object graph rooted in the message.
propagate_error
Propagates the given Dart error to the Dart side.