MCPcopy Create free account

hub / github.com/dgrunwald/rust-cpython / functions

Functions924 in github.com/dgrunwald/rust-cpython

Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/serde/error.rs:19
Methodfrom
(err: PythonObjectDowncastError<'p>)
src/err.rs:448
Methodfrom
(val: &'a str)
src/objects/string.rs:126
Methodfrom
(err: PyErr)
src/serde/error.rs:42
Methodfrom_borrowed_ptr
(_py: Python, ptr: *mut ffi::PyObject)
src/objects/object.rs:133
Methodfrom_borrowed_ptr_opt
(py: Python, ptr: *mut ffi::PyObject)
src/objects/object.rs:155
Methodfrom_format
(format: &CStr)
src/buffer.rs:46
Methodfrom_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
Methodfrom_instance_helper
(py: Python, obj: PyObject)
src/err.rs:268
Methodfrom_object
Constructs a PyIterator from a Python iterator object.
src/objects/iterator.rs:36
Methodfrom_owned_ptr
(_py: Python, ptr: *mut ffi::PyObject)
src/objects/object.rs:122
Methodfrom_owned_ptr_opt
(py: Python, ptr: *mut ffi::PyObject)
src/objects/object.rs:145
Methodfrom_type_ptr
(py: Python, p: *mut ffi::PyTypeObject)
src/objects/typeobject.rs:44
Functionfunc
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
Functiongc_integration
()
tests/test_class.rs:390
Methodget
(&'a self, _py: Python<'a>)
src/pythonrun.rs:180
Methodget
Gets a member from the module. This is equivalent to the Python expression: `getattr(module, name)`
src/objects/module.rs:102
Methodget
(py: Python, val: bool)
src/objects/boolobject.rs:15
Methodget_item
(&self, py: Python, key: K)
src/objectprotocol.rs:291
Methodget_item
Gets the item at the specified index. Panics if the index is out of range.
src/objects/tuple.rs:64
Methodget_item
(&self, py: Python, index: isize)
src/objects/sequence.rs:94
Functionget_kwargs
(py: Python, ptr: *mut ffi::PyObject)
src/argparse.rs:401
Methodget_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
Methodget_refcnt
(&self, _py: Python)
src/objects/object.rs:197
Functionget_rustc_link_lib
( _: &PythonVersion, ld_version: &str, enable_shared: bool, )
python27-sys/build.rs:204
Functionget_rustc_link_lib
( _: &PythonVersion, ld_version: &str, enable_shared: bool, )
python3-sys/build.rs:201
Methodget_slice
(&self, py: Python, begin: isize, end: isize)
src/objects/sequence.rs:106
Functionget_str
(s: *const libc::c_char)
python27-sys/examples/version.rs:1
Functionget_str
(s: *const libc::c_char)
python3-sys/examples/version.rs:1
Methodget_type
Gets the Python type object for type T.
src/python.rs:347
Methodget_type
(&self, py: Python)
src/err.rs:363
Functionhandle_callback
(_location: &str, _c: C, f: F)
src/function.rs:212
Methodhasattr
(&self, py: Python, attr_name: N)
src/objectprotocol.rs:37
Methodhash
(&self, py: Python)
src/objectprotocol.rs:256
Methodimport
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
Methodimport
Import the Python module with the specified name.
src/objects/module.rs:43
Methodimport_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
Methodin_place_concat
(&self, py: Python, other: &PySequence)
src/objects/sequence.rs:70
Methodin_place_repeat
(&self, py: Python, count: isize)
src/objects/sequence.rs:83
Methodindex
(&self, py: Python, value: V)
src/objects/sequence.rs:201
Methodinit_ob_type
(&mut self, type_object: *mut PyTypeObject)
python27-sys/src/object.rs:554
Methodinit_ob_type
(&mut self, type_object: *mut PyTypeObject)
python3-sys/src/object.rs:588
Functioninline_two_args
()
tests/test_function.rs:110
Functioninplace_operations
()
tests/test_class.rs:1092
Functioninplace_operations_ref
()
tests/test_class.rs:1168
Methodinsert_item
(&self, py: Python, index: usize, item: PyObject)
src/objects/list.rs:86
Methodinstance
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
Functioninstance_method
()
tests/test_class.rs:181
Functioninstance_method_returns_none
()
tests/test_class.rs:206
Functioninstance_method_with_args
()
tests/test_class.rs:233
Methodinto_descriptor
(self, py: Python, _ty: *mut ffi::PyTypeObject)
src/py_class/members.rs:49
Methodinto_inner
(self)
src/pythonrun.rs:186
Methodinto_object
(self)
src/objects/object.rs:77
Methodinto_py_object
(self, py: Python)
src/conversion.rs:42
Methodis_callable
(&self, _py: Python)
src/objectprotocol.rs:198
Methodis_instance
(&self, _: Python, obj: &PyObject)
src/objects/typeobject.rs:61
Functionis_matching_endian
(c: u8)
src/buffer.rs:135
Functionis_ready
(_py: Python, ty: &ffi::PyTypeObject)
src/py_class/mod.rs:109
Methodis_subclass_of
Return true if self is a subclass of base.
src/objects/oldstyle.rs:43
Methodis_subtype_of
(&self, _: Python, b: &PyType)
src/objects/typeobject.rs:55
Methodis_true
(&self, py: Python)
src/objectprotocol.rs:268
Methodis_true
(&self)
src/objects/boolobject.rs:25
Methoditer
(&self, py: Python<'p>)
src/objectprotocol.rs:331
Functioniterator
()
tests/test_class.rs:447
Methodleft_shift
(&self, py: Python, bits: impl ToPyObject)
src/objectprotocol/number.rs:172
Methodlen
(&self, py: Python)
src/objectprotocol.rs:280
Methodlen
(&self, py: Python)
src/objects/sequence.rs:38
Methodlist
(&self, py: Python)
src/objects/sequence.rs:217
Functionmain
()
build.rs:17
Functionmain
()
python27-sys/build.rs:436
Functionmain
()
python27-sys/examples/version.rs:6
Functionmain
()
python3-sys/build.rs:433
Functionmain
()
python3-sys/examples/version.rs:6
Functionmain
()
examples/hello.rs:3
Functionmatrix_multiply
()
tests/test_class.rs:1481
Methodmodulo
(&self, py: Python, other: impl ToPyObject)
src/objectprotocol/number.rs:113
Functionmp_ass_subscript_error
(o: *mut ffi::PyObject, err: &[u8])
src/py_class/slots.rs:247
Methodmultiply
(&self, py: Python, other: impl ToPyObject)
src/objectprotocol/number.rs:37
Methodname
Gets the name of the PyType.
src/objects/typeobject.rs:49
Methodname
Gets the module name. May fail if the module does not have a `__name__` attribute.
src/objects/module.rs:75
Methodnegative
(&self, py: Python)
src/objectprotocol/number.rs:132
Methodnew
( py: Python<'p>, expected_type_name: impl Into<String>, received_type: PyType, )
src/python.rs:66
Methodnew
Creates a new `PySharedRefCell` containing `value`. can be "const fn" since Rust 1.31.0
src/sharedref.rs:91
Methodnew
(data: T)
src/pythonrun.rs:172
Methodnew
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
Methodnew
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
Methodnew
Creates a new empty dictionary. May panic when running out of memory.
src/objects/dict.rs:36
Methodnew
( py: Python, encoding: &CStr, input: &[u8], range: ops::Range<usize>,
src/objects/exc.rs:153
Methodnew
Create a new module object with the `__name__` attribute set to name.
src/objects/module.rs:37
Methodnew
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
Methodnew
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
Methodnew
Construct a new tuple with the given elements.
src/objects/tuple.rs:35
Methodnew
Construct a new list with the given elements.
src/objects/list.rs:32
Methodnew
Creates a new set from any iterable Corresponds to `set(iterable)` in Python.
src/objects/set.rs:36
Methodnew
(py: Python<'a>, variant: V)
src/serde/ser.rs:47
Methodnew
Constructs from
src/serde/de.rs:44
Methodnew_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
Methodnew_from_ffi_tuple
( py: Python, ptype: *mut ffi::PyObject, pvalue: *mut ffi::PyObject, ptracebac
src/err.rs:228
Methodnew_helper
(_py: Python, ty: PyType, value: PyObject)
src/err.rs:247
Methodnew_impl
(py: Python, s: &str)
src/objects/string.rs:247
← previousnext →601–700 of 924, ranked by callers