pub enum ExportEntry {
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
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.
Fields
Trait Implementations§
impl Collect for ExportEntry
Auto Trait Implementations§
impl Freeze for ExportEntry
impl RefUnwindSafe for ExportEntry
impl Send for ExportEntry
impl Sync for ExportEntry
impl Unpin for ExportEntry
impl UnsafeUnpin for ExportEntry
impl UnwindSafe for ExportEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more