[−][src]Attribute Macro emacs_macros::
Exports a function to the Lisp runtime. The function is bound at initialization, even if it is defined inside another function which is never called.
By default, the function's Lisp name has the form
feature-prefixis the feature's name, followed by
-. This can be customized by the
mod-prefixis constructed from the function's Rust module path (with
-). This can be turned off crate-wide, or for individual function, using the option
base-nameis the function's Rust name (with
-). This can be overridden with the option
#[defun(name = "foo:bar")].
- Each argument's type must be either:
- The return type must be
Tis a type that implements