rune_core

Module macros

Source
Expand description

Redefinition of the macro_exported macros to avoid namespace colision when the macros have the same name as modules.

An example of that is the crate::error module, and the error macro.

Macros§

  • TODO: Document
  • Helper macro to call a function with arguments
  • TODO: Document
  • TODO: Document
  • Helper macro for the rebind! macro
  • TODO: Document
  • Rebinds an object so that it is bound to an immutable borrow of crate::gc::Context instead of a mutable borrow. This can release the mutable borrow and allow Context to be used for other things.
  • Creates a new root that will be traced during garbage collection. The value returned by this macro is no longer bound to the Context and so can be used outside of the Context’s lifetime. The root is tied to the stack, and will be unrooted when it goes out of scope.