pub enum LibraryLinkFunction {
Native {
name: &'static str,
signature: fn() -> Result<(Vec<Expr>, Expr), String>,
},
Wstp {
name: &'static str,
},
Wxf {
name: &'static str,
signature: fn() -> Result<(Vec<Expr>, Expr), String>,
},
}Expand description
LibraryLinkFunction is a type alias for ExportEntry.
Lives at this path because the proc-macro emits
macro_utils::LibraryLinkFunction::{Native,Wstp,Wxf}{...} for inventory
submission.
Inventory entry for one #[export]-marked function.
Replaces the legacy LibraryLinkFunction enum from wolfram-library-link.
All three export-mode runtimes (wolfram-export-native, wolfram-export-wstp,
wolfram-export-wxf) submit entries of this single shared type to one
global inventory; exported_library_functions_association iterates that
inventory regardless of mode.
Variants§
Native
Native MArgument-based export.
Fields
Wstp
WSTP LinkObject-based export.
Wxf
Typed-args WXF-based export (NEW). Wire shape is {ByteArray} -> ByteArray
at the LibraryLink level; the byte arrays carry WXF-encoded payloads of
the user-declared Rust types.