pub struct NativeFunction { /* private fields */ }

Implementations

actually execute a native function

Trait Implementations

Converts to this type from the input type.

SAFETY: Must call Gc::mark_trace() on every reachable Gc handle

If the GcTrace owns any allocations, this should return the extra allocated size. If the allocation can change size, like a Vec, then don’t include it in the size hint, or return a const estimate of the average size. 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.