[−][src]Function pyo3::ffi::PyDateTime_IMPORT
pub unsafe fn PyDateTime_IMPORT() -> &'static PyDateTime_CAPI
Populates the PyDateTimeAPI
object
Unlike in C, this does not need to be actively invoked in Rust, which
will populate the PyDateTimeAPI
struct automatically on first use.
Use this function only if you want to eagerly load the datetime module,
such as if you do not want the first call to a datetime function to be
slightly slower than subsequent calls.
Safety
The Python GIL must be held.