Struct cpython::NoArgs [] [src]

pub struct NoArgs;

An empty struct that represents the empty argument list. Corresponds to the empty tuple () in Python.

Example

let gil_guard = cpython::Python::acquire_gil();
let py = gil_guard.python();
let os = py.import("os").unwrap();
let pid = os.call(py, "get_pid", cpython::NoArgs, None);

Trait Implementations

impl Copy for NoArgs
[src]

impl Clone for NoArgs
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NoArgs
[src]

Formats the value using the given formatter.

impl ToPyObject for NoArgs
[src]

Converts NoArgs to an empty Python tuple.

Converts self into a Python object.

Converts self into a Python object. Read more

Converts self into a Python object and calls the specified closure on the native FFI pointer underlying the Python object. Read more

impl<'source> FromPyObject<'source> for NoArgs
[src]

Extracts Self from the source PyObject.