pub struct FunctionEntry {
pub name: String,
pub kind: String,
pub params: Vec<Expr>,
pub ret: Expr,
}Expand description
Serializable description of one exported function, embedded in every dylib
via __wolfram_manifest__. Defined here so the CLI can share the
type and deserialize directly with wolfram_serialize::from_wxf.
params/ret carry the real argument/return type Exprs for Native
functions (they are unused for Wstp/Wxf, whose wire shape is fixed).
Storing real Exprs — not stringified ones — keeps compound type specs like
List[LibraryDataType["NumericArray", "Integer8"], "Constant"] intact.
Fields§
§name: StringExported function name (the key used in the generated WL loader).
kind: StringTransport mode as a string: "Native", "Margs", "Wstp", or "Wxf".
params: Vec<Expr>Parameter type specs as Exprs (native mode only; empty otherwise).
ret: ExprReturn type spec as an Expr (native mode only; a placeholder otherwise).
Trait Implementations§
Source§impl Clone for FunctionEntry
impl Clone for FunctionEntry
Source§fn clone(&self) -> FunctionEntry
fn clone(&self) -> FunctionEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionEntry
impl Debug for FunctionEntry
Source§impl<'de> FromWXF<'de> for FunctionEntry
impl<'de> FromWXF<'de> for FunctionEntry
Source§impl ToWXF for FunctionEntry
impl ToWXF for FunctionEntry
impl WxfStruct for FunctionEntry
Auto Trait Implementations§
impl Freeze for FunctionEntry
impl RefUnwindSafe for FunctionEntry
impl Send for FunctionEntry
impl Sync for FunctionEntry
impl Unpin for FunctionEntry
impl UnsafeUnpin for FunctionEntry
impl UnwindSafe for FunctionEntry
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