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, "getpid", cpython::NoArgs, None).unwrap();

Trait Implementations

impl Copy for NoArgs
[src]

impl Clone for NoArgs
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for NoArgs
[src]

[src]

Formats the value using the given formatter.

impl ToPyObject for NoArgs
[src]

Converts NoArgs to an empty Python tuple.

[src]

Converts self into a Python object.

[src]

Converts self into a Python object. Read more

[src]

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]

[src]

Extracts Self from the source PyObject.