Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrunwald/rust-cpython
/ types & classes
Types & classes
186 in github.com/dgrunwald/rust-cpython
⨍
Functions
924
◇
Types & classes
186
↓ 8 callers
Class
Argument
src/py_class/py_class_impl.py:661
↓ 6 callers
Class
AbortOnDrop
src/function.rs:269
↓ 3 callers
Class
B
src/serde/tests.rs:62
↓ 1 callers
Class
A
src/serde/tests.rs:30
↓ 1 callers
Class
ClassMethodDescriptor
src/py_class/members.rs:168
↓ 1 callers
Class
InstanceMethodDescriptor
src/py_class/members.rs:111
↓ 1 callers
Class
PyBuffer
Allows access to the underlying buffer used by a python object such as `bytes`, `bytearray` or `array.array`.
src/buffer.rs:29
↓ 1 callers
Class
PyString
Represents a Python string. Corresponds to `basestring` in Python 2, and `str` in Python 3.
src/objects/string.rs:31
↓ 1 callers
Class
Python
src/python.rs:39
↓ 1 callers
Class
TraverseError
TODO: what's the semantics of the traverse return code? If it's just a normal python exception, we might want to use PyErr instead.
src/py_class/gc.rs:28
Interface
BaseObject
A PythonObject that is usable as a base type with the `py_class!()` macro.
src/py_class/mod.rs:114
Class
BoolConverter
src/py_class/slots.rs:674
Class
BorrowPyShared
Helper to keep the borrow count updated while the shared object is immutably borrowed without using the `RefCell` interface.
src/sharedref.rs:280
Class
BuildDict
src/serde/ser.rs:82
Class
BuildList
src/serde/ser.rs:80
Class
BuildTuple
src/serde/ser.rs:81
Interface
CallbackConverter
src/function.rs:168
Enum
CompareOp
src/py_class/mod.rs:47
Class
Deserializer
src/serde/de.rs:29
Enum
E
src/serde/tests.rs:71
Interface
Element
Trait implemented for possible element types of `PyBuffer`.
src/buffer.rs:151
Enum
ElementType
src/buffer.rs:37
Class
Error
Error type used by serialization.
src/serde/error.rs:9
Interface
FromPyObject
FromPyObject is implemented by various types that can be extracted from a Python object. Normal usage is through the `PyObject::extract` helper metho
src/conversion.rs:102
Class
GILGuard
src/pythonrun.rs:96
Class
GILProtected
Mutex-like wrapper object for data that is protected by the Python GIL. # Example ``` use std::cell::Cell; use cpython::{Python, GILProtected}; let
src/pythonrun.rs:157
Class
HashConverter
src/py_class/slots.rs:650
Class
IterNextResultConverter
src/py_class/slots.rs:601
Class
LenResultConverter
src/py_class/slots.rs:581
Class
NoArgs
src/objects/tuple.rs:213
Interface
NumberProtocol
Operations on numeric objects
src/objectprotocol/number.rs:14
Interface
ObjectProtocol
Trait that contains methods
src/objectprotocol.rs:33
Class
OrdPyObject
Newtype around PyObject that implements Ord using python value comparisons. Python exceptions are converted into Rust panics.
extensions/tests/btree.rs:15
Class
ParamDescription
Description of a python parameter; used for `parse_args()`.
src/argparse.rs:31
Class
PyASCIIObject
python3-sys/src/unicodeobject.rs:444
Class
PyArena
python27-sys/src/pyarena.rs:7
Class
PyArena
python3-sys/src/pyarena.rs:2
Class
PyAsyncMethods
python3-sys/src/object.rs:331
Class
PyBool
Represents a Python `bool`.
src/objects/boolobject.rs:8
Class
PyBufferProcs
python27-sys/src/object.rs:308
Class
PyBufferProcs
python3-sys/src/object.rs:362
Interface
PyBuildVariant
src/serde/ser.rs:35
Class
PyBytes
Represents a Python byte string. Corresponds to `str` in Python 2, and `bytes` in Python 3.
src/objects/string.rs:40
Class
PyCapsule
Capsules are the preferred way to export/import C APIs between extension modules, see [Providing a C API for an Extension Module](https://docs.python.
src/objects/capsule.rs:188
Class
PyCellObject
python27-sys/src/cellobject.rs:8
Class
PyClass
Represents an old-style Python class. Only available with Python 2.x.
src/objects/oldstyle.rs:32
Class
PyClassObject
python27-sys/src/classobject.rs:8
Interface
PyClone
src/python.rs:98
Class
PyCodeObject
python27-sys/src/code.rs:8
Class
PyCodeObject
The field orderings have completely changed in 3.11, so we seperate it out into a different type declaration the justification for the reordering was
python3-sys/src/code.rs:20
Interface
PyCollectItems
src/serde/ser.rs:31
Class
PyCompactUnicodeObject
python3-sys/src/unicodeobject.rs:455
Class
PyCompilerFlags
python27-sys/src/pythonrun.rs:20
Class
PyCompilerFlags
python3-sys/src/pythonrun.rs:35
Class
PyComplexObject
python27-sys/src/complexobject.rs:26
Class
PyConfig
python3-sys/src/initconfig.rs:98
Class
PyDict
Represents a Python `dict`.
src/objects/dict.rs:28
Interface
PyDrop
src/python.rs:123
Class
PyErr
src/err.rs:143
Class
PyFloat
Represents a Python `float` object. You can usually avoid directly working with this type by using [ToPyObject](trait.ToPyObject.html) and [extract](
src/objects/num.rs:64
Class
PyFloatObject
python27-sys/src/floatobject.rs:8
Class
PyFrameObject
python27-sys/src/frameobject.rs:18
Class
PyFrameObject
python3-sys/src/frameobject.rs:29
Class
PyFutureFeatures
python27-sys/src/compile.rs:9
Class
PyFutureFeatures
python3-sys/src/compile.rs:23
Enum
PyGILState_STATE
python27-sys/src/pystate.rs:64
Enum
PyGILState_STATE
python3-sys/src/pystate.rs:61
Class
PyGenObject
python27-sys/src/genobject.rs:9
Class
PyGetSetDef
python27-sys/src/descrobject.rs:14
Class
PyGetSetDef
python3-sys/src/descrobject.rs:14
Class
PyHash_FuncDef
python3-sys/src/pyhash.rs:7
Class
PyHeapTypeObject
python27-sys/src/object.rs:561
Class
PyHeapTypeObject
python3-sys/src/object.rs:595
Class
PyImport_Struct_frozen
python27-sys/src/import.rs:21
Class
PyImport_Struct_inittab
python27-sys/src/import.rs:7
Class
PyInstance
Represents an old-style Python instance. Only available with Python 2.x.
src/objects/oldstyle.rs:38
Class
PyInstanceObject
python27-sys/src/classobject.rs:26
Class
PyInt
src/objects/num.rs:43
Class
PyIntObject
python27-sys/src/intobject.rs:8
Class
PyInterpreterState
python27-sys/src/pystate.rs:7
Class
PyInterpreterState
python3-sys/src/pystate.rs:10
Class
PyItems
src/serde/ser.rs:39
Class
PyIterator
A python iterator object. Unlike other python objects, this class includes a `Python<'p>` token so that PyIterator can implement the rust `Iterator`
src/objects/iterator.rs:29
Class
PyLeakedRef
An immutably borrowed reference to a leaked value.
src/sharedref.rs:439
Class
PyLeakedRefMut
A mutably borrowed reference to a leaked value.
src/sharedref.rs:453
Class
PyList
Represents a Python `list`.
src/objects/list.rs:26
Class
PyListIterator
Used by `PyList::iter()`.
src/objects/list.rs:106
Class
PyListObject
python27-sys/src/listobject.rs:8
Class
PyLong
In Python 2.x, represents a Python `long` object. In Python 3.x, represents a Python `int` object. Both `PyInt` and `PyLong` refer to the same type on
src/objects/num.rs:55
Class
PyLongObject
python3-sys/src/longobject.rs:7
Class
PyMappingMethods
python27-sys/src/object.rs:287
Class
PyMappingMethods
python3-sys/src/object.rs:304
Class
PyMemAllocator
python3-sys/src/pymem.rs:36
Enum
PyMemAllocatorDomain
python3-sys/src/pymem.rs:27
Class
PyMemAllocatorEx
python3-sys/src/pymem.rs:47
Class
PyMemberDef
python27-sys/src/structmember.rs:8
Class
PyMemberDef
python3-sys/src/structmember.rs:8
Class
PyMemoryViewObject
python27-sys/src/memoryobject.rs:40
Class
PyMethodChain
python27-sys/src/methodobject.rs:77
Class
PyMethodDef
python27-sys/src/methodobject.rs:40
next →
1–100 of 186, ranked by callers