Expand description
Function, a callable shared with C++ and Python, and the global function
registry.
Structs§
- Function
- A type-erased callable that works across languages.
- Function
Obj - The object behind a
Function.
Traits§
- AsPacked
Callable - A closure
Fn(T0, ..., Tn) -> Result<O>with 0 to 8 parameters, whichFunction::from_typedandFunction::register_global_typedwrap. Each parameter is anyAnyCompatibletype, aTensorView, valid during the call, or anRValueRef<T>;Oconverts intoAny. - Packed
Call Arg - One argument of a packed call: held for the call, then viewed as an FFI
value.
&strand&[u8]are held asStringandBytes. Implemented by#[derive(ObjectRef)]andimpl_any_compatible_conversions!. - Packed
Call Args - The arguments of a packed call: a tuple of 0 to 8
PackedCallArgvalues.