logo
pub struct Function { /* private fields */ }
Expand description

Reference to a function a module that can be run

The function must have the signature as defined in ModuleRunFn

Implementations

Create a reference to a function in another module

Create a reference to a local function in the same module

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.