Struct pyo3::NoArgs [−][src]
pub struct NoArgs;
An empty struct that represents the empty argument list.
Corresponds to the empty tuple ()
in Python.
Example
let gil = pyo3::Python::acquire_gil(); let py = gil.python(); let os = py.import("os").unwrap(); let pid = os.call("get_pid", pyo3::NoArgs, pyo3::NoArgs);
Trait Implementations
impl Copy for NoArgs
[src]
impl Copy for NoArgs
impl Clone for NoArgs
[src]
impl Clone for NoArgs
fn clone(&self) -> NoArgs
[src]
fn clone(&self) -> NoArgs
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for NoArgs
[src]
impl Debug for NoArgs
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl IntoPyTuple for NoArgs
[src]
impl IntoPyTuple for NoArgs
Converts NoArgs
to an empty Python tuple.
fn into_tuple(self, py: Python) -> Py<PyTuple>
[src]
fn into_tuple(self, py: Python) -> Py<PyTuple>
Converts self into a PyTuple object.
impl ToPyObject for NoArgs
[src]
impl ToPyObject for NoArgs
Converts NoArgs
to an empty Python tuple.
impl IntoPyObject for NoArgs
[src]
impl IntoPyObject for NoArgs
Converts NoArgs
to an empty Python tuple.
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
Converts self into a Python object. (Consumes self)
impl IntoPyDictPointer for NoArgs
[src]
impl IntoPyDictPointer for NoArgs
Converts NoArgs
to an null pointer.