[][src]Function dart_sys::Dart_SetField

pub unsafe extern "C" fn Dart_SetField(
    container: Dart_Handle,
    name: Dart_Handle,
    value: Dart_Handle
) -> Dart_Handle

Sets the value of a field.

The 'container' parameter may actually be an object, type, or library. If 'container' is an object, then this function will access an instance field. If 'container' is a type, then this function will access a static field. If 'container' is a library, then this function will access a top-level variable. NOTE: This API call cannot be used to access fields of a type object.

This function ignores field visibility (leading underscores in names).

May generate an unhandled exception error.

\param container An object, type, or library. \param name A field name. \param value The new field value.

\return A valid handle if no error occurs.