Skip to main content

FunctionEntry

Struct FunctionEntry 

Source
pub struct FunctionEntry {
    pub name: String,
    pub kind: String,
    pub params: Vec<String>,
    pub ret: String,
}
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].

Fields§

§name: String§kind: String§params: Vec<String>§ret: String

Trait Implementations§

Source§

impl Debug for FunctionEntry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> FromWXF<'de> for FunctionEntry

Source§

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§

fn from_wxf<R>(r: &mut WxfReader<R>) -> Result<Self, Error>
where R: Reader<'de>,

Read a complete value: its expression token, then its body.
Source§

impl ToWXF for FunctionEntry

Source§

fn to_wxf<__W: Writer>(&self, __w: &mut WxfWriter<__W>) -> Result<(), Error>

Write self to w as a complete WXF value (tag + payload).
Source§

impl WxfStruct for FunctionEntry

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.