HrFunc

typealias HrFunc = (<Error class: unknown class>?, <Error class: unknown class>?) -> Boolean

Specifies the type of the function passed to func@GLib.HashTable.find, func@GLib.HashTable.foreach_remove, and func@GLib.HashTable.foreach_steal.

The function is called with each key/value pair, together with the @user_data parameter passed to the calling function.

The function should return true if the key/value pair should be selected, meaning it has been found or it should be removed from the struct@GLib.HashTable, depending on the calling function.

  • param key a key

  • param value the value associated with the key

  • return true if the key/value pair should be selected, and false otherwise