Module pyo3::ffi [−][src]
Expand description
Raw ffi declarations for the c interface of python
Modules
Structs
Structure representing a datetime.date
Structure representing a datetime.datetime
Structure representing a datetime.timedelta
.
Structure representing a datetime.time
.
struct _frame as typedef’ed in pyframe.h
Enums
Constants
Maximum number of dimensions
Helper initial value of PyGetSetDef
for a dict-like Python class.
Helper initial value of PyGetSetDef
for a Python class.
Set if the type allows subclassing
Objects support garbage collection (see objimp.h)
Objects support type attribute cache
Set if the type object is dynamically allocated
Set if the type is ‘ready’ – fully initialized
Set while the type is being ‘readied’, to prevent recursive ready calls
Statics
built-in ‘object’
built-in ‘super’
built-in ‘type’
Functions
Check if op
is a PyDateTimeAPI.DateTimeType
or subtype.
Check if op
’s type is exactly PyDateTimeAPI.DateTimeType
.
Retrieve the fold component of a PyDateTime_DateTime
.
Returns a signed integer in the interval [0, 1]
Retrieve the hour component of a PyDateTime_DateTime
.
Returns a signed integer in the interval [0, 23]
Retrieve the microsecond component of a PyDateTime_DateTime
.
Returns a signed integer in the interval [0, 999999]
Retrieve the minute component of a PyDateTime_DateTime
.
Returns a signed integer in the interval [0, 59]
Retrieve the second component of a PyDateTime_DateTime
.
Returns a signed integer in the interval [0, 59]
Retrieve the tzinfo component of a PyDateTime_DateTime
.
Returns a pointer to a PyObject
that should be either NULL or an instance
of a datetime.tzinfo
subclass.
Retrieve the days component of a PyDateTime_Delta
.
Retrieve the seconds component of a PyDateTime_Delta
.
Retrieve the seconds component of a PyDateTime_Delta
.
Retrieve the day component of a PyDateTime_Date
or PyDateTime_DateTime
.
Returns a signed integer in the interval [1, 31]
.
Retrieve the month component of a PyDateTime_Date
or PyDateTime_DateTime
.
Returns a signed integer in the range [1, 12]
.
Retrieve the year component of a PyDateTime_Date
or PyDateTime_DateTime
.
Returns a signed integer greater than 0.
Populates the PyDateTimeAPI
object
Retrieve the fold component of a PyDateTime_Time
.
Returns a signed integer in the interval [0, 1]
Retrieve the hour component of a PyDateTime_Time
.
Returns a signed integer in the interval [0, 23]
Retrieve the microsecond component of a PyDateTime_DateTime
.
Returns a signed integer in the interval [0, 999999]
Retrieve the minute component of a PyDateTime_Time
.
Returns a signed integer in the interval [0, 59]
Retrieve the second component of a PyDateTime_DateTime
.
Returns a signed integer in the interval [0, 59]
Retrieve the tzinfo component of a PyDateTime_Time
.
Returns a pointer to a PyObject
that should be either NULL or an instance
of a datetime.tzinfo
subclass.
Type Check macros
Check if op
’s type is exactly PyDateTimeAPI.DateType
.
Check if op
is a PyDateTimeAPI.DetaType
or subtype.
Check if op
’s type is exactly PyDateTimeAPI.DeltaType
.
Macro, trading safety for speed
Macro, only to be used to fill in brand new lists
Test if an object has a GC head
Check if op
is a PyDateTimeAPI.TZInfoType
or subtype.
Check if op
’s type is exactly PyDateTimeAPI.TZInfoType
.
Check if op
is a PyDateTimeAPI.TimeType
or subtype.
Check if op
’s type is exactly PyDateTimeAPI.TimeType
.
Macro, trading safety for speed
Macro, only to be used to fill in brand new tuples
Test if a type has a GC head
Test if a type supports weak references