GeezerVison is showing rustpython.github.io — rustpython_vm::function::PyFuncArgs - Rust The PyFuncArgs struct is one of the most used structs then creating
a rust function that can be called from python. It holds both positional
arguments, as well as keyword arguments passed to the function.
Fieldsargs: Vec<PyObjectRef>kwargs: IndexMap<String, PyObjectRef>MethodsBinds these arguments to their respective values.
If there is an insufficient number of arguments, there are leftover
arguments after performing the binding, or if an argument is not of
the expected type, a TypeError is raised.
If the given FromArgs includes any conversions, exceptions raised
during the conversion will halt the binding and return the error.
Trait ImplementationsFormats the value using the given formatter. Read more
Returns the "default value" for a type. Read more
Conversion from vector of python objects to function arguments.
Extracts this item from the next argument(s).
The range of positional arguments permitted by the function signature. Read more
Auto Trait ImplementationsBlanket Implementationsimpl<T> Any for T where T: 'static + ?Sized, [src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The range of positional arguments permitted by the function signature. Read more
Extracts this item from the next argument(s).
impl<T, U> Into<U> for T where U: From<T>, [src]
impl<T> Same<T> for T
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into)recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom<U> for T where U: Into<T>, [src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where V: MultiLane<T>,
|