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
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/serde/error.rs:19
Method
from
(err: PythonObjectDowncastError<'p>)
src/err.rs:448
Method
from
(val: &'a str)
src/objects/string.rs:126
Method
from
(err: PyErr)
src/serde/error.rs:42
Method
from_borrowed_ptr
(_py: Python, ptr: *mut ffi::PyObject)
src/objects/object.rs:133
Method
from_borrowed_ptr_opt
(py: Python, ptr: *mut ffi::PyObject)
src/objects/object.rs:155
Method
from_format
(format: &CStr)
src/buffer.rs:46
Method
from_instance
Creates a new PyErr. `obj` must be an Python exception instance, the PyErr will use that instance. If `obj` is a Python exception type object, the Py
src/err.rs:261
Method
from_instance_helper
(py: Python, obj: PyObject)
src/err.rs:268
Method
from_object
Constructs a PyIterator from a Python iterator object.
src/objects/iterator.rs:36
Method
from_owned_ptr
(_py: Python, ptr: *mut ffi::PyObject)
src/objects/object.rs:122
Method
from_owned_ptr_opt
(py: Python, ptr: *mut ffi::PyObject)
src/objects/object.rs:145
Method
from_type_ptr
(py: Python, p: *mut ffi::PyTypeObject)
src/objects/typeobject.rs:44
Function
func
The py_fn!()-macro can translate between Python and Rust values, so you can use `&str`, `i32` or `String` in the signature of a function callable from
extensions/hello/src/hello.rs:20
Function
gc_integration
()
tests/test_class.rs:390
Method
get
(&'a self, _py: Python<'a>)
src/pythonrun.rs:180
Method
get
Gets a member from the module. This is equivalent to the Python expression: `getattr(module, name)`
src/objects/module.rs:102
Method
get
(py: Python, val: bool)
src/objects/boolobject.rs:15
Method
get_item
(&self, py: Python, key: K)
src/objectprotocol.rs:291
Method
get_item
Gets the item at the specified index. Panics if the index is out of range.
src/objects/tuple.rs:64
Method
get_item
(&self, py: Python, index: isize)
src/objects/sequence.rs:94
Function
get_kwargs
(py: Python, ptr: *mut ffi::PyObject)
src/argparse.rs:401
Method
get_ptr
Gets a pointer to the specified item. If `indices.len() < self.dimensions()`, returns the start address of the sub-array at the specified dimension.
src/buffer.rs:189
Method
get_refcnt
(&self, _py: Python)
src/objects/object.rs:197
Function
get_rustc_link_lib
( _: &PythonVersion, ld_version: &str, enable_shared: bool, )
python27-sys/build.rs:204
Function
get_rustc_link_lib
( _: &PythonVersion, ld_version: &str, enable_shared: bool, )
python3-sys/build.rs:201
Method
get_slice
(&self, py: Python, begin: isize, end: isize)
src/objects/sequence.rs:106
Function
get_str
(s: *const libc::c_char)
python27-sys/examples/version.rs:1
Function
get_str
(s: *const libc::c_char)
python3-sys/examples/version.rs:1
Method
get_type
Gets the Python type object for type T.
src/python.rs:347
Method
get_type
(&self, py: Python)
src/err.rs:363
Function
handle_callback
(_location: &str, _c: C, f: F)
src/function.rs:212
Method
hasattr
(&self, py: Python, attr_name: N)
src/objectprotocol.rs:37
Method
hash
(&self, py: Python)
src/objectprotocol.rs:256
Method
import
Retrieves the contents of a capsule as a void pointer by its name. This is suitable in particular for later conversion as a function pointer with `me
src/objects/capsule.rs:542
Method
import
Import the Python module with the specified name.
src/objects/module.rs:43
Method
import_data
Retrieve the contents of a capsule pointing to some data as a reference. The retrieved data would typically be an array of static data and/or functio
src/objects/capsule.rs:531
Method
in_place_concat
(&self, py: Python, other: &PySequence)
src/objects/sequence.rs:70
Method
in_place_repeat
(&self, py: Python, count: isize)
src/objects/sequence.rs:83
Method
index
(&self, py: Python, value: V)
src/objects/sequence.rs:201
Method
init_ob_type
(&mut self, type_object: *mut PyTypeObject)
python27-sys/src/object.rs:554
Method
init_ob_type
(&mut self, type_object: *mut PyTypeObject)
python3-sys/src/object.rs:588
Function
inline_two_args
()
tests/test_function.rs:110
Function
inplace_operations
()
tests/test_class.rs:1092
Function
inplace_operations_ref
()
tests/test_class.rs:1168
Method
insert_item
(&self, py: Python, index: usize, item: PyObject)
src/objects/list.rs:86
Method
instance
Retrieves the exception instance for this error. This method takes `&mut self` because the error might need to be normalized in order to create the ex
src/err.rs:385
Function
instance_method
()
tests/test_class.rs:181
Function
instance_method_returns_none
()
tests/test_class.rs:206
Function
instance_method_with_args
()
tests/test_class.rs:233
Method
into_descriptor
(self, py: Python, _ty: *mut ffi::PyTypeObject)
src/py_class/members.rs:49
Method
into_inner
(self)
src/pythonrun.rs:186
Method
into_object
(self)
src/objects/object.rs:77
Method
into_py_object
(self, py: Python)
src/conversion.rs:42
Method
is_callable
(&self, _py: Python)
src/objectprotocol.rs:198
Method
is_instance
(&self, _: Python, obj: &PyObject)
src/objects/typeobject.rs:61
Function
is_matching_endian
(c: u8)
src/buffer.rs:135
Function
is_ready
(_py: Python, ty: &ffi::PyTypeObject)
src/py_class/mod.rs:109
Method
is_subclass_of
Return true if self is a subclass of base.
src/objects/oldstyle.rs:43
Method
is_subtype_of
(&self, _: Python, b: &PyType)
src/objects/typeobject.rs:55
Method
is_true
(&self, py: Python)
src/objectprotocol.rs:268
Method
is_true
(&self)
src/objects/boolobject.rs:25
Method
iter
(&self, py: Python<'p>)
src/objectprotocol.rs:331
Function
iterator
()
tests/test_class.rs:447
Method
left_shift
(&self, py: Python, bits: impl ToPyObject)
src/objectprotocol/number.rs:172
Method
len
(&self, py: Python)
src/objectprotocol.rs:280
Method
len
(&self, py: Python)
src/objects/sequence.rs:38
Method
list
(&self, py: Python)
src/objects/sequence.rs:217
Function
main
()
build.rs:17
Function
main
()
python27-sys/build.rs:436
Function
main
()
python27-sys/examples/version.rs:6
Function
main
()
python3-sys/build.rs:433
Function
main
()
python3-sys/examples/version.rs:6
Function
main
()
examples/hello.rs:3
Function
matrix_multiply
()
tests/test_class.rs:1481
Method
modulo
(&self, py: Python, other: impl ToPyObject)
src/objectprotocol/number.rs:113
Function
mp_ass_subscript_error
(o: *mut ffi::PyObject, err: &[u8])
src/py_class/slots.rs:247
Method
multiply
(&self, py: Python, other: impl ToPyObject)
src/objectprotocol/number.rs:37
Method
name
Gets the name of the PyType.
src/objects/typeobject.rs:49
Method
name
Gets the module name. May fail if the module does not have a `__name__` attribute.
src/objects/module.rs:75
Method
negative
(&self, py: Python)
src/objectprotocol/number.rs:132
Method
new
( py: Python<'p>, expected_type_name: impl Into<String>, received_type: PyType, )
src/python.rs:66
Method
new
Creates a new `PySharedRefCell` containing `value`. can be "const fn" since Rust 1.31.0
src/sharedref.rs:91
Method
new
(data: T)
src/pythonrun.rs:172
Method
new
Creates a new PyErr of type `T`. `value` can be: `NoArgs`: the exception instance will be created using python `T()` a tuple: the exception instance
src/err.rs:172
Method
new
Creates a new capsule from a raw void pointer This is suitable in particular to store a function pointer in a capsule. These can be obtained simply b
src/objects/capsule.rs:583
Method
new
Creates a new empty dictionary. May panic when running out of memory.
src/objects/dict.rs:36
Method
new
( py: Python, encoding: &CStr, input: &[u8], range: ops::Range<usize>,
src/objects/exc.rs:153
Method
new
Create a new module object with the `__name__` attribute set to name.
src/objects/module.rs:37
Method
new
Creates a new Python string object. On Python 2.7, this function will create a byte string if the feature `py2-no-auto-unicode-promotion` is set, or
src/objects/string.rs:245
Method
new
Creates a new Python 2.7 `int` object. Note: you might want to call `val.to_py_object(py)` instead to avoid truncation if the value does not fit into
src/objects/num.rs:74
Method
new
Construct a new tuple with the given elements.
src/objects/tuple.rs:35
Method
new
Construct a new list with the given elements.
src/objects/list.rs:32
Method
new
Creates a new set from any iterable Corresponds to `set(iterable)` in Python.
src/objects/set.rs:36
Method
new
(py: Python<'a>, variant: V)
src/serde/ser.rs:47
Method
new
Constructs from
src/serde/de.rs:44
Method
new_data
Convenience method to create a capsule for some data The encapsuled data may be an array of functions, but it can't be itself a function directly. M
src/objects/capsule.rs:557
Method
new_from_ffi_tuple
( py: Python, ptype: *mut ffi::PyObject, pvalue: *mut ffi::PyObject, ptracebac
src/err.rs:228
Method
new_helper
(_py: Python, ty: PyType, value: PyObject)
src/err.rs:247
Method
new_impl
(py: Python, s: &str)
src/objects/string.rs:247
← previous
next →
601–700 of 924, ranked by callers