Module python_comm::use_pyo3[][src]

Expand description

to use pyo3::pyfunction

Usage

use python_comm::{use_pyo3::*};

#[pyfunction]
fn func() -> Result<(), PyErr> {
  Ok(())
}

Macros

Returns a function that takes a Python instance and returns a Python function.

Structs

Decimal represents a 128 bit representation of a fixed-precision decimal number. The finite set of values of type Decimal are of the form m / 10e, where m is an integer such that -296 < m < 296, and e is an integer between 0 and 28 inclusive.

ISO 8601 calendar date without timezone. Allows for every proleptic Gregorian date from Jan 1, 262145 BCE to Dec 31, 262143 CE. Also supports the conversion from ISO 8601 ordinal and week date.

ISO 8601 combined date and time without timezone.

ISO 8601 time without timezone. Allows for the nanosecond precision and optional leap second representation.

Represents a Python exception that was raised.

Represents a Python module object.

Marker type that indicates that the GIL is currently held.

Attribute Macros

A proc macro used to expose Rust functions to Python.