#[repr(C)]
pub struct PyDateTime_CAPI {
Show 15 fields pub DateType: *mut PyTypeObject, pub DateTimeType: *mut PyTypeObject, pub TimeType: *mut PyTypeObject, pub DeltaType: *mut PyTypeObject, pub TZInfoType: *mut PyTypeObject, pub TimeZone_UTC: *mut PyObject, pub Date_FromDate: unsafe extern "C" fn(i32, i32, i32, *mut PyTypeObject) -> *mut PyObject, pub DateTime_FromDateAndTime: unsafe extern "C" fn(i32, i32, i32, i32, i32, i32, i32, *mut PyObject, *mut PyTypeObject) -> *mut PyObject, pub Time_FromTime: unsafe extern "C" fn(i32, i32, i32, i32, *mut PyObject, *mut PyTypeObject) -> *mut PyObject, pub Delta_FromDelta: unsafe extern "C" fn(i32, i32, i32, i32, *mut PyTypeObject) -> *mut PyObject, pub TimeZone_FromTimeZone: unsafe extern "C" fn(*mut PyObject, *mut PyObject) -> *mut PyObject, pub DateTime_FromTimestamp: unsafe extern "C" fn(*mut PyTypeObject, *mut PyObject, *mut PyObject) -> *mut PyObject, pub Date_FromTimestamp: unsafe extern "C" fn(*mut PyTypeObject, *mut PyObject) -> *mut PyObject, pub DateTime_FromDateAndTimeAndFold: unsafe extern "C" fn(i32, i32, i32, i32, i32, i32, i32, *mut PyObject, i32, *mut PyTypeObject) -> *mut PyObject, pub Time_FromTimeAndFold: unsafe extern "C" fn(i32, i32, i32, i32, *mut PyObject, i32, *mut PyTypeObject) -> *mut PyObject,
}

Fields

DateType: *mut PyTypeObjectDateTimeType: *mut PyTypeObjectTimeType: *mut PyTypeObjectDeltaType: *mut PyTypeObjectTZInfoType: *mut PyTypeObjectTimeZone_UTC: *mut PyObjectDate_FromDate: unsafe extern "C" fn(i32, i32, i32, *mut PyTypeObject) -> *mut PyObjectDateTime_FromDateAndTime: unsafe extern "C" fn(i32, i32, i32, i32, i32, i32, i32, *mut PyObject, *mut PyTypeObject) -> *mut PyObjectTime_FromTime: unsafe extern "C" fn(i32, i32, i32, i32, *mut PyObject, *mut PyTypeObject) -> *mut PyObjectDelta_FromDelta: unsafe extern "C" fn(i32, i32, i32, i32, *mut PyTypeObject) -> *mut PyObjectTimeZone_FromTimeZone: unsafe extern "C" fn(*mut PyObject, *mut PyObject) -> *mut PyObjectDateTime_FromTimestamp: unsafe extern "C" fn(*mut PyTypeObject, *mut PyObject, *mut PyObject) -> *mut PyObjectDate_FromTimestamp: unsafe extern "C" fn(*mut PyTypeObject, *mut PyObject) -> *mut PyObjectDateTime_FromDateAndTimeAndFold: unsafe extern "C" fn(i32, i32, i32, i32, i32, i32, i32, *mut PyObject, i32, *mut PyTypeObject) -> *mut PyObject
This is supported on non-PyPy only.
Time_FromTimeAndFold: unsafe extern "C" fn(i32, i32, i32, i32, *mut PyObject, i32, *mut PyTypeObject) -> *mut PyObject
This is supported on non-PyPy only.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.