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_data__. Defined here so the CLI can share the
type and deserialize directly with [wolfram_serialize::deserialize].
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: String§kind: String§params: Vec<Expr>§ret: ExprTrait Implementations§
Source§impl Debug for FunctionEntry
impl Debug for FunctionEntry
Source§impl<'de> FromWXF<'de> for FunctionEntry
impl<'de> FromWXF<'de> for FunctionEntry
Source§fn from_wxf_with_tag<__R: Reader<'de>>(
__c: &mut WxfReader<__R>,
__tok: ExpressionEnum,
) -> Result<Self, Error>
fn from_wxf_with_tag<__R: Reader<'de>>( __c: &mut WxfReader<__R>, __tok: ExpressionEnum, ) -> Result<Self, Error>
Read the body given the already-consumed expression token.
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