MCPcopy Index your code

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

Functions924 in github.com/dgrunwald/rust-cpython

↓ 150 callersMethodpython
(&self)
src/pythonrun.rs:128
↓ 116 callersMethodas_ptr
(&self)
src/objects/object.rs:166
↓ 69 callersMethodinto_object
(self)
src/objects/iterator.rs:59
↓ 62 callersFunctionwrite
(text)
src/py_class/py_class_impl.py:211
↓ 60 callersFunctionPy_TYPE
(ob: *mut PyObject)
python27-sys/src/object.rs:36
↓ 51 callersFunctionPy_TYPE
(ob: *mut PyObject)
python3-sys/src/object.rs:44
↓ 43 callersMethodinsert
Inserts an item at the specified index. Panics if the index is out of range.
src/objects/list.rs:78
↓ 37 callersMethodas_ptr
(&self)
src/buffer.rs:631
↓ 37 callersFunctionresult_from_owned_ptr
(py: Python, p: *mut ffi::PyObject)
src/err.rs:464
↓ 34 callersMethodto_py_object
(&self, py: Python)
src/objects/num.rs:312
↓ 31 callersMethoditer
(&'a self, py: Python<'p>)
src/objects/list.rs:96
↓ 29 callersMethodwith_borrowed_ptr
(&self, _py: Python, f: F)
src/objects/boolobject.rs:40
↓ 24 callersFunctionunimplemented
(special_name)
src/py_class/py_class_impl.py:650
↓ 22 callersMethodrun
Executes one or more Python statements in the given context. If `globals` is `None`, it defaults to Python module `__main__`. If `locals` is `None`,
src/python.rs:265
↓ 20 callersMethodlen
(&self, _py: Python)
src/objects/set.rs:62
↓ 20 callersMethodset_item
Sets an item value. This is equivalent to the Python expression `self[key] = value`.
src/objects/dict.rs:87
↓ 19 callersFunctionerror_on_minusone
(py: Python, result: libc::c_int)
src/err.rs:512
↓ 18 callersMethodmap
Converts the inner value by the given function. Typically `T` is a static reference to a collection, and `U` is an iterator of that collection. # Pa
src/sharedref.rs:418
↓ 18 callersFunctionoperator
(special_name, slot, args=(), res_type='PyObject', res_conv=None, res_ffi_type='*mut $crate::_
src/py_class/py_class_impl.py:667
↓ 17 callersMethodsteal_ptr
(self)
src/objects/object.rs:174
↓ 16 callersMethodget
Get the underlying buffer from the specified python object.
src/buffer.rs:165
↓ 16 callersMethodserialize
(&self, obj: T)
src/serde/ser.rs:112
↓ 15 callersFunctionerror
(special_name, msg)
src/py_class/py_class_impl.py:643
↓ 15 callersMethodextract
Attempt to convert `obj` to a given type.
src/serde/de.rs:79
↓ 15 callersFunctionreflected_numeric_operator
(special_name)
src/py_class/py_class_impl.py:765
↓ 14 callersMethodformat
(&self)
src/buffer.rs:279
↓ 14 callersFunctiongenerate_case
(pattern, old_info=None, new_info=None, new_impl=None, new_slots=None, new_members=None, new_props=None)
src/py_class/py_class_impl.py:252
↓ 14 callersFunctionnumeric_operator
(special_name, arity, slot)
src/py_class/py_class_impl.py:746
↓ 14 callersFunctionresult_cast_from_owned_ptr
(py: Python, p: *mut ffi::PyObject)
src/err.rs:488
↓ 13 callersFunctioncheck_serde_round_trip
(value: &S)
src/serde/tests.rs:99
↓ 13 callersMethodeval
Evaluates a Python expression in the given context and returns the result. If `globals` is `None`, it defaults to Python module `__main__`. If `local
src/python.rs:252
↓ 13 callersFunctionf
(_py: Python)
tests/test_function.rs:9
↓ 13 callersFunctionlen
()
tests/test_class.rs:419
↓ 13 callersFunctionprepare_env
()
tests/test_sharedref.rs:7
↓ 13 callersMethodto_py_object
(&self, py: Python)
src/conversion.rs:179
↓ 13 callersMethodto_string
Convert the Python string data to a Rust string. For UTF-8 and ASCII-only latin-1, returns a borrow into the original string data. For Latin-1, UTF-1
src/objects/string.rs:152
↓ 13 callersMethodwith_borrowed_ptr
(&self, py: Python, f: F)
src/conversion.rs:189
↓ 12 callersMethodcollect
(&self)
src/serde/ser.rs:62
↓ 12 callersFunctioninplace_numeric_operator
(special_name, slot)
src/py_class/py_class_impl.py:770
↓ 11 callersMethodNone
(self)
src/python.rs:319
↓ 11 callersMethodto_py_object
(&self, py: Python)
src/objects/set.rs:123
↓ 10 callersFunctionPyType_FastSubclass
(t: *mut PyTypeObject, f: c_long)
python27-sys/src/object.rs:789
↓ 10 callersFunctionPyType_FastSubclass
(t: *mut PyTypeObject, f: c_ulong)
python3-sys/src/object.rs:885
↓ 10 callersMethodappend
Appends an item to the end of the list
src/objects/list.rs:91
↓ 10 callersMethodas_object
(&self)
src/objects/iterator.rs:53
↓ 10 callersFunctioncast_from_owned_ptr_or_panic
(py: Python, p: *mut ffi::PyObject)
src/err.rs:499
↓ 10 callersMethoddata
Gets the python string data in its underlying representation. For Python 2 byte strings, this function always returns `PyStringData::Utf8`, even if t
src/objects/string.rs:270
↓ 10 callersMethodto_py_object
(&self, py: Python)
src/objects/dict.rs:146
↓ 10 callersMethodto_py_object
(&self, py: Python)
src/objects/list.rs:141
↓ 9 callersFunctionPyObject_TypeCheck
(ob: *mut PyObject, tp: *mut PyTypeObject)
python3-sys/src/object.rs:713
↓ 9 callersMethodborrow_mut
Mutably borrows the wrapped value. Any existing leaked references will be invalidated. # Panics Panics if the value is currently borrowed.
src/sharedref.rs:161
↓ 9 callersMethodrestore
(self, py: Python)
src/err.rs:396
↓ 8 callersMethodadd
Add a value. This is equivalent to the Python expression `self.add(value)`.
src/objects/set.rs:83
↓ 8 callersMethodleak_immutable
Creates an immutable reference which is not bound to lifetime. # Panics Panics if the value is currently mutably borrowed.
src/sharedref.rs:186
↓ 8 callersFunctionnormal_method
(special_name)
src/py_class/py_class_impl.py:654
↓ 7 callersFunctionPyObject_TypeCheck
(ob: *mut PyObject, tp: *mut PyTypeObject)
python27-sys/src/object.rs:593
↓ 7 callersMethodas_type_ptr
(&self)
src/objects/typeobject.rs:36
↓ 7 callersMethoditem_size
(&self)
src/buffer.rs:211
↓ 7 callersMethodrelease_ref
(self, py: Python)
src/err.rs:429
↓ 6 callersFunctionPyType_HasFeature
(t: *mut PyTypeObject, f: c_long)
python27-sys/src/object.rs:784
↓ 6 callersFunctionPy_DECREF
(op: *mut PyObject)
python3-sys/src/object.rs:905
↓ 6 callersMethodclone_ref
(&self, py: Python)
src/err.rs:437
↓ 6 callersMethodextract
(&'a self, py: Python)
src/objects/object.rs:256
↓ 6 callersMethoditems
Returns the list of (key,value) pairs in this dictionary.
src/objects/dict.rs:117
↓ 6 callersMethodto_string_lossy
Convert the Python string data to a Rust string. Returns a borrow into the original string data if possible. Data that isn't valid in its encoding w
src/objects/string.rs:213
↓ 5 callersMethodas_ptr
(&self)
src/python.rs:164
↓ 5 callersMethoditem_count
(&self)
src/buffer.rs:217
↓ 5 callersMethoditer
(&self, py: Python<'p>)
src/objects/sequence.rs:228
↓ 5 callersMethodtry_borrow
Immutably borrows the wrapped value, returning an error if the value is currently mutably borrowed.
src/sharedref.rs:147
↓ 5 callersFunctionwatched_var_os
(key: &str)
python27-sys/build.rs:70
↓ 5 callersFunctionwatched_var_os
(key: &str)
python3-sys/build.rs:67
↓ 4 callersFunctionPy_True
()
python3-sys/src/boolobject.rs:25
↓ 4 callersMethodborrow
Immutably borrows the wrapped value. # Panics Panics if the value is currently mutably borrowed.
src/sharedref.rs:141
↓ 4 callersMethodclear
(&self, py: Python)
src/objects/set.rs:55
↓ 4 callersMethoddeserialize_seq
(self, v: V)
src/serde/de.rs:209
↓ 4 callersMethoddeserialize_string
(self, v: V)
src/serde/de.rs:164
↓ 4 callersMethodget_item
Gets an item from the dictionary. Returns None if the item is not present, or if an error occurs.
src/objects/dict.rs:76
↓ 4 callersFunctionimpl
(with_params, with_docs, with_visibility)
src/py_class/py_class_impl.py:431
↓ 4 callersMethodimport
Import the Python module with the specified name.
src/python.rs:355
↓ 4 callersMethodis_none
(&self, _py: Python)
src/objects/object.rs:265
↓ 4 callersMethodlen
(&self, _py: Python)
src/objects/list.rs:47
↓ 3 callersFunctionPyList_Check
(op: *mut PyObject)
python27-sys/src/listobject.rs:26
↓ 3 callersFunctionPyType_HasFeature
(t: *mut PyTypeObject, f: c_ulong)
python3-sys/src/object.rs:874
↓ 3 callersFunctionPy_False
()
python3-sys/src/boolobject.rs:20
↓ 3 callersFunctionPy_None
()
python3-sys/src/object.rs:954
↓ 3 callersMethodclone
(&self)
python3-sys/src/code.rs:100
↓ 3 callersMethodcmp
(&self, _other: &Self)
extensions/tests/btree.rs:29
↓ 3 callersMethodextract
(py: Python, obj: &'s PyObject)
src/objects/sequence.rs:244
↓ 3 callersFunctionextract_sequence
(py: Python, obj: &PyObject)
src/objects/sequence.rs:298
↓ 3 callersMethodget_type
Gets the Python type object for this object's type.
src/objects/object.rs:202
↓ 3 callersMethodgetattr
(&self, py: Python, attr_name: N)
src/objectprotocol.rs:49
↓ 3 callersFunctionincompatible_format_error
(py: Python)
src/buffer.rs:589
↓ 3 callersMethodinto_py_object
(self, py: Python)
src/objects/list.rs:169
↓ 3 callersFunctionis_value
(key: &str)
python27-sys/build.rs:158
↓ 3 callersFunctionis_value
(key: &str)
python3-sys/build.rs:155
↓ 3 callersMethodnext
Returns the next item from a Python iterator (obj should be an iterable).
src/serde/de.rs:54
↓ 3 callersFunctionoperator_impl
(special_name, slot, args, res_type, res_conv, res_ffi_type, additional_slots, typefunc)
src/py_class/py_class_impl.py:697
↓ 3 callersMethodpop
Pop a value This is equivalent to the Python expression `self.pop(value)`. We get KeyError if the set is empty
src/objects/set.rs:106
↓ 3 callersMethodreadonly
(&self)
src/buffer.rs:204
↓ 3 callersMethodrepr
(&self, py: Python)
src/objectprotocol.rs:177
next →1–100 of 924, ranked by callers