Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrunwald/rust-cpython
/ functions
Functions
924 in github.com/dgrunwald/rust-cpython
⨍
Functions
924
◇
Types & classes
186
↓ 1 callers
Function
Py_NotImplemented
()
python3-sys/src/object.rs:964
↓ 1 callers
Function
Py_REFCNT
(ob: *mut PyObject)
python27-sys/src/object.rs:31
↓ 1 callers
Function
Py_REFCNT
(ob: *mut PyObject)
python3-sys/src/object.rs:39
↓ 1 callers
Function
Py_SIZE
(ob: *mut PyObject)
python3-sys/src/object.rs:49
↓ 1 callers
Method
True
(self)
src/python.rs:326
↓ 1 callers
Method
add
(&self, py: Python, other: impl ToPyObject)
src/objectprotocol/number.rs:19
↓ 1 callers
Function
buffer_readonly_error
(py: Python)
src/buffer.rs:596
↓ 1 callers
Method
build_variant
(&self, py: Python, obj: PyObject)
src/serde/ser.rs:69
↓ 1 callers
Method
call
(&self, py: Python, args: A, kwargs: Option<&PyDict>)
src/objectprotocol.rs:210
↓ 1 callers
Function
call_operator
(special_name, slot)
src/py_class/py_class_impl.py:738
↓ 1 callers
Function
cfg_line_for_var
(key: &str, val: &str)
python27-sys/build.rs:162
↓ 1 callers
Function
cfg_line_for_var
(key: &str, val: &str)
python3-sys/build.rs:159
↓ 1 callers
Method
clone_ref
(&self, py: Python)
src/python.rs:107
↓ 1 callers
Function
configure_from_path
Deduce configuration from the 'python' in the current PATH and print cargo vars to stdout. Note that if the python doesn't satisfy expected_version,
python27-sys/build.rs:342
↓ 1 callers
Function
configure_from_path
Deduce configuration from the 'python' in the current PATH and print cargo vars to stdout. Note that if the python doesn't satisfy expected_version,
python3-sys/build.rs:339
↓ 1 callers
Method
copy_from_slice
Copies the specified slice into the buffer. If the buffer is multi-dimensional, the elements in the slice are expected to be in C-style order. Fails
src/buffer.rs:531
↓ 1 callers
Method
copy_to_slice
Copies the buffer elements to the specified slice. If the buffer is multi-dimensional, the elements are written in C-style order. Fails if the slice
src/buffer.rs:434
↓ 1 callers
Method
current_borrow_count
(&self, _py: Python)
src/sharedref.rs:251
↓ 1 callers
Function
data_decl
()
src/py_class/py_class_impl.py:356
↓ 1 callers
Method
data_impl
(&self, py: Python)
src/objects/string.rs:275
↓ 1 callers
Method
data_ref_cstr
Returns a reference to the capsule data. This is identical to `data_ref`, except for the name passing. This allows to use lower level constructs with
src/objects/capsule.rs:626
↓ 1 callers
Method
decrease_borrow_count
(&self, _py: Python)
src/sharedref.rs:261
↓ 1 callers
Method
deserialize_any
(self, v: V)
src/serde/de.rs:95
↓ 1 callers
Method
deserialize_bool
(self, v: V)
src/serde/de.rs:120
↓ 1 callers
Method
deserialize_f64
(self, v: V)
src/serde/de.rs:160
↓ 1 callers
Method
deserialize_i64
(self, v: V)
src/serde/de.rs:136
↓ 1 callers
Method
deserialize_u64
(self, v: V)
src/serde/de.rs:152
↓ 1 callers
Method
deserialize_unit
(self, v: V)
src/serde/de.rs:193
↓ 1 callers
Method
dimensions
(&self)
src/buffer.rs:233
↓ 1 callers
Function
example_hashmap
()
src/serde/tests.rs:91
↓ 1 callers
Function
from_owned_ptr_or_panic
(py: Python, p: *mut ffi::PyObject)
src/err.rs:480
↓ 1 callers
Function
get_config_vars
(python_path: &str)
python27-sys/build.rs:79
↓ 1 callers
Function
get_config_vars
(python_path: &str)
python3-sys/build.rs:76
↓ 1 callers
Function
get_interpreter_version
Parse string as interpreter version.
python27-sys/build.rs:241
↓ 1 callers
Function
get_interpreter_version
Parse string as interpreter version.
python3-sys/build.rs:238
↓ 1 callers
Method
get_item
Gets the item at the specified index. Panics if the index is out of range.
src/objects/list.rs:55
↓ 1 callers
Function
get_macos_linkmodel
(expected_version: &PythonVersion)
python27-sys/build.rs:217
↓ 1 callers
Function
get_macos_linkmodel
(expected_version: &PythonVersion)
python3-sys/build.rs:214
↓ 1 callers
Function
handle_panic
This only needs `&dyn Any`, but we keep a `Box` all the way to avoid the risk of a subtle bug in the caller where `&Box<dyn Any>` is coerced to `&dyn
src/function.rs:245
↓ 1 callers
Function
hello
(py: Python)
examples/hello.rs:8
↓ 1 callers
Method
increase_borrow_count
(&self, _py: Python)
src/sharedref.rs:255
↓ 1 callers
Method
increment_generation
(&self, py: Python)
src/sharedref.rs:270
↓ 1 callers
Method
into_normalized
Helper function for normalizing the error by deconstructing and reconstructing the PyErr. Must not panic for safety in normalize()
src/err.rs:344
↓ 1 callers
Method
items_list
List of dict items. This is equivalent to the python expression `list(dict.items())`.
src/objects/dict.rs:112
↓ 1 callers
Method
iter
(&self, py: Python)
src/objects/tuple.rs:91
↓ 1 callers
Method
len
(&self, _py: Python)
src/objects/dict.rs:55
↓ 1 callers
Function
main
()
src/py_class/py_class_impl.py:923
↓ 1 callers
Function
match_braces
(text)
tests/check_symbols.py:61
↓ 1 callers
Method
matches
Return true if the current exception matches the exception in `exc`. If `exc` is a class object, this also returns `true` when `self` is an instance o
src/err.rs:323
↓ 1 callers
Method
matrix_multiply
(&self, py: Python, other: impl ToPyObject)
src/objectprotocol/number.rs:51
↓ 1 callers
Method
name
Name, with leading `r#` stripped.
src/argparse.rs:40
↓ 1 callers
Method
normalize
Normalizes the error. This ensures that the exception value is an instance of the exception type.
src/err.rs:333
↓ 1 callers
Method
power_modulo
(&self, py: Python, exp: impl ToPyObject, z: impl ToPyObject)
src/objectprotocol/number.rs:78
↓ 1 callers
Function
prepare_freethreaded_python
Prepares the use of Python in a free-threaded context. If the Python interpreter is not already initialized, this function will initialize it with di
src/pythonrun.rs:47
↓ 1 callers
Function
property_method
()
src/py_class/py_class_impl.py:602
↓ 1 callers
Method
repeat
(&self, py: Python, count: isize)
src/objects/sequence.rs:59
↓ 1 callers
Method
serialize_none
(self)
src/serde/ser.rs:196
↓ 1 callers
Method
serialize_unit
(self)
src/serde/ser.rs:207
↓ 1 callers
Method
set_item
Sets the item at the specified index. Panics if the index is out of range.
src/objects/list.rs:69
↓ 1 callers
Method
setattr
(&self, py: Python, attr_name: N, value: V)
src/objectprotocol.rs:61
↓ 1 callers
Method
shape
(&self)
src/buffer.rs:245
↓ 1 callers
Function
shared_data_decl
()
src/py_class/py_class_impl.py:390
↓ 1 callers
Function
special_class_method
(special_name, *args, **kwargs)
src/py_class/py_class_impl.py:658
↓ 1 callers
Function
standard_element_type_from_type_char
(type_char: u8)
src/buffer.rs:112
↓ 1 callers
Function
static_data
()
src/py_class/py_class_impl.py:598
↓ 1 callers
Function
static_method
()
src/py_class/py_class_impl.py:569
↓ 1 callers
Method
steal_ptr
(self, _py: Python)
src/python.rs:169
↓ 1 callers
Method
str
(&self, py: Python)
src/objectprotocol.rs:184
↓ 1 callers
Function
test_thread_exit_py
(py: Python)
tests/test_thread_exit.rs:4
↓ 1 callers
Method
to_py_object
(&self, py: Python)
src/objects/none.rs:45
↓ 1 callers
Function
traverse_and_clear
()
src/py_class/py_class_impl.py:472
↓ 1 callers
Method
try_leak_immutable
Creates an immutable reference which is not bound to lifetime, returning an error if the value is currently mutably borrowed.
src/sharedref.rs:192
↓ 1 callers
Function
validate
(b: &ffi::Py_buffer)
src/buffer.rs:157
↓ 1 callers
Function
version_from_env
Determine the python version we're supposed to be building from the features passed via the environment. The environment variable can choose to omit
python27-sys/build.rs:414
↓ 1 callers
Function
version_from_env
Determine the python version we're supposed to be building from the features passed via the environment. The environment variable can choose to omit
python3-sys/build.rs:411
Method
NotImplemented
(self)
src/python.rs:342
Function
PyAnySet_Check
(ob: *mut PyObject)
python27-sys/src/setobject.rs:30
Function
PyAnySet_Check
(ob: *mut PyObject)
python3-sys/src/setobject.rs:30
Function
PyBool_Check
(op: *mut PyObject)
python27-sys/src/boolobject.rs:17
Function
PyBool_Check
(op: *mut PyObject)
python3-sys/src/boolobject.rs:15
Function
PyBuffer_Check
(op: *mut PyObject)
python27-sys/src/bufferobject.rs:12
Function
PyByteArray_AS_STRING
(o: *mut PyObject)
python27-sys/src/bytearrayobject.rs:47
Function
PyByteArray_Check
(op: *mut PyObject)
python27-sys/src/bytearrayobject.rs:27
Function
PyByteArray_Check
(op: *mut PyObject)
python3-sys/src/bytearrayobject.rs:13
Function
PyByteArray_CheckExact
(op: *mut PyObject)
python27-sys/src/bytearrayobject.rs:31
Function
PyByteArray_CheckExact
(op: *mut PyObject)
python3-sys/src/bytearrayobject.rs:18
Function
PyByteArray_GET_SIZE
(o: *mut PyObject)
python27-sys/src/bytearrayobject.rs:55
Function
PyBytes_Check
(op: *mut PyObject)
python3-sys/src/bytesobject.rs:13
Function
PyBytes_CheckExact
(op: *mut PyObject)
python3-sys/src/bytesobject.rs:18
Function
PyCFunction_Check
(op: *mut PyObject)
python27-sys/src/methodobject.rs:12
Function
PyCFunction_Check
(op: *mut PyObject)
python3-sys/src/methodobject.rs:12
Function
PyCFunction_New
(ml: *mut PyMethodDef, slf: *mut PyObject)
python27-sys/src/methodobject.rs:119
Function
PyCObject_Check
(op: *mut PyObject)
python27-sys/src/cobject.rs:11
Function
PyCallIter_Check
(op: *mut PyObject)
python27-sys/src/iterobject.rs:20
Function
PyCallIter_Check
(op: *mut PyObject)
python3-sys/src/iterobject.rs:20
Function
PyCapsule_CheckExact
(ob: *mut PyObject)
python27-sys/src/pycapsule.rs:13
Function
PyCapsule_CheckExact
(ob: *mut PyObject)
python3-sys/src/pycapsule.rs:13
Function
PyCell_Check
(op: *mut PyObject)
python27-sys/src/cellobject.rs:24
Function
PyCell_GET
(op: *mut PyObject)
python27-sys/src/cellobject.rs:36
Function
PyCell_SET
(op: *mut PyObject, obj: *mut PyObject)
python27-sys/src/cellobject.rs:41
← previous
next →
201–300 of 924, ranked by callers