Struct pyo3::ffi::PyDateTime_CAPI
source · [−]#[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 PyTypeObject
DateTimeType: *mut PyTypeObject
TimeType: *mut PyTypeObject
DeltaType: *mut PyTypeObject
TZInfoType: *mut PyTypeObject
TimeZone_UTC: *mut PyObject
Date_FromDate: unsafe extern "C" fn(i32, i32, i32, *mut PyTypeObject) -> *mut PyObject
DateTime_FromDateAndTime: unsafe extern "C" fn(i32, i32, i32, i32, i32, i32, i32, *mut PyObject, *mut PyTypeObject) -> *mut PyObject
Time_FromTime: unsafe extern "C" fn(i32, i32, i32, i32, *mut PyObject, *mut PyTypeObject) -> *mut PyObject
Delta_FromDelta: unsafe extern "C" fn(i32, i32, i32, i32, *mut PyTypeObject) -> *mut PyObject
TimeZone_FromTimeZone: unsafe extern "C" fn(*mut PyObject, *mut PyObject) -> *mut PyObject
DateTime_FromTimestamp: unsafe extern "C" fn(*mut PyTypeObject, *mut PyObject, *mut PyObject) -> *mut PyObject
Date_FromTimestamp: unsafe extern "C" fn(*mut PyTypeObject, *mut PyObject) -> *mut PyObject
DateTime_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
sourceimpl Clone for PyDateTime_CAPI
impl Clone for PyDateTime_CAPI
sourcefn clone(&self) -> PyDateTime_CAPI
fn clone(&self) -> PyDateTime_CAPI
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PyDateTime_CAPI
impl Debug for PyDateTime_CAPI
impl Copy for PyDateTime_CAPI
impl Sync for PyDateTime_CAPI
Auto Trait Implementations
impl RefUnwindSafe for PyDateTime_CAPI
impl !Send for PyDateTime_CAPI
impl Unpin for PyDateTime_CAPI
impl UnwindSafe for PyDateTime_CAPI
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more