MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

Functiongetattr_doesnt_override_member
()
tests/test_proto_methods.rs:645
Functiongetattr_intern
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_intern.rs:17
Functiongetattribute_overrides_member
()
tests/test_proto_methods.rs:683
Methodgetbuffer_must_be_unsafe
(&self, _view: *mut pyo3::ffi::Py_buffer, _flags: std::ffi::c_int)
tests/ui/invalid_pymethods_buffer.rs:9
Methodgetset_getter
( slf: *mut ffi::PyObject, closure: *mut c_void,
src/pyclass/create_type_object.rs:700
Methodgetset_setter
( slf: *mut ffi::PyObject, value: *mut ffi::PyObject,
src/pyclass/create_type_object.rs:710
Methodgetter
( slf: *mut ffi::PyObject, closure: *mut c_void,
src/pyclass/create_type_object.rs:667
Functiongetter_setter_autogen
()
tests/test_getter_setter.rs:111
Methodgetter_with_arg
(&self, _py: Python<'_>, _index: u32)
tests/ui/invalid_property_args.rs:15
Methodgetter_without_receiver
()
tests/ui/invalid_pymethods.rs:48
Functiongil_disabled_config_file_corner_cases
()
pyo3-build-config/src/impl_.rs:2959
Functionhammer_attaching_in_thread
()
pytests/src/misc.rs:23
Methodhandle_kwargs
( &self, kwargs: I, varkeywords: &mut K::Varkeywords, num_positional_parameter
src/impl_/extract_argument.rs:719
Functionhandle_result_in_new
()
tests/test_inheritance.rs:217
Methodhandle_varargs_fastcall
( _py: Python<'py>, varargs: &[Option<PyArg<'py>>], function_description: &FunctionDes
src/impl_/extract_argument.rs:984
Methodhandle_varargs_tuple
( args: &Bound<'py, PyTuple>, function_description: &FunctionDescription, )
src/impl_/extract_argument.rs:999
Methodhandle_varkeyword
( _varkeywords: &mut Self::Varkeywords, name: PyArg<'py>, _value: PyArg<'py>,
src/impl_/extract_argument.rs:1064
Functionhandle_zero
()
src/conversions/num_bigint.rs:624
Functionhas_pyo3_module_declared
( attrs: &[syn::Attribute], root_attribute_name: &str, is_module_option: impl Fn(&T) -> bool + Cop
pyo3-macros-backend/src/module.rs:726
Methodhook
(&self, unraisable: Bound<'_, PyAny>)
tests/test_utils/mod.rs:194
Functionid_int
(slf: *mut PyObject)
pyo3-ffi/examples/sequential/src/id.rs:61
Functionid_new
( subtype: *mut PyTypeObject, args: *mut PyObject, kwds: *mut PyObject, )
pyo3-ffi/examples/sequential/src/id.rs:25
Functionid_repr
(slf: *mut PyObject)
pyo3-ffi/examples/sequential/src/id.rs:52
Functionid_richcompare
( slf: *mut PyObject, other: *mut PyObject, op: c_int, )
pyo3-ffi/examples/sequential/src/id.rs:67
Methodimag
(&self)
src/types/complex.rs:251
Functionimmutable_type_object
()
tests/test_class_attributes.rs:96
Functionimpl_trait_function
(_impl_trait: impl AsRef<PyAny>)
tests/ui/invalid_pyfunctions.rs:9
Methodimpl_trait_method_first_arg
(_impl_trait: impl AsRef<PyAny>)
tests/ui/invalid_pymethods.rs:163
Methodimpl_trait_method_second_arg
(&self, _impl_trait: impl AsRef<PyAny>)
tests/ui/invalid_pymethods.rs:166
Methodimport
Imports an existing capsule. The `name` should match the path to the module attribute exactly in the form of `"module.attribute"`, which should be th
src/types/capsule.rs:395
Methodimport
This is a shorthand method for `get_or_init` which imports the type from Python on init. # Example: Using `PyOnceLock` to store a class in a static v
src/sync/once_lock.rs:158
Methodimport_pointer
Imports an existing capsule as a pointer. The `name` should match the path to the module attribute exactly in the form of `"module.attribute"`, which
src/types/capsule.rs:419
Methodincr
(&mut self, resolve: bool)
tests/test_coroutine.rs:289
Methodincref_failed
()
src/instance.rs:2146
Methodindex
(&self, index: I)
src/types/bytes.rs:248
Methodindex
(&self, value: V)
src/types/tuple.rs:328
Methodindex
(&self, value: V)
src/types/sequence.rs:299
Functionindexable
()
tests/test_arithmetics.rs:99
Functioninherit_dict
()
tests/test_inheritance.rs:303
Functioninherit_dict_drop
()
tests/test_inheritance.rs:316
Functioninherit_list
()
tests/test_inheritance.rs:462
Functioninherit_set
()
tests/test_inheritance.rs:273
Functioninherit_tzinfo
()
tests/test_inheritance.rs:407
Functioninheritance_with_new_methods
()
tests/test_inheritance.rs:134
Functioninheritance_with_new_methods_with_drop
()
tests/test_gc.rs:256
Functioninherited_dict
()
tests/test_class_basics.rs:565
Functioninherited_weakref
()
tests/test_class_basics.rs:637
Functioninit
()
pytests/src/othermod.rs:43
Functioninit
~^ ERROR: `#[pyfunction]` cannot be used alongside `#[pymodule_init]`
tests/ui/invalid_pymodule_init_pyfunction.rs:10
Functioninit
()
tests/ui/invalid_pymodule_init_return.rs:6
Functioninit
(_m: &Bound<'_, PyModule>)
tests/ui/invalid_pymodule_two_pymodule_init.rs:8
Functioninit
(_m: &Bound<'_, PyModule>, _extra: usize)
tests/ui/invalid_pymodule_init_args.rs:8
Functioninit2
(_m: &Bound<'_, PyModule>)
tests/ui/invalid_pymodule_two_pymodule_init.rs:13
Functioninit_module
(m: &Bound<'_, PyModule>)
tests/test_module.rs:49
Methodinit_multi_phase
(&'static self)
src/impl_/pymodule.rs:121
Methodinitialize
()
src/marker.rs:475
Functioninitialize_tss
()
src/platform/thread/thread_local.rs:103
Functioninner
Inner function to convert the field value at the given offset # Safety - mutable aliasing is prevented by the caller - value of type `FieldT` must ex
src/impl_/pyclass.rs:1412
Methodinner
( any: &'a Bound<'py, PyAny>, )
src/instance.rs:167
Methodinner
(&'a self)
src/sync.rs:822
Methodinner
( module: &Bound<'_, PyModule>, name: Borrowed<'_, '_, PyString>, value: B
src/types/module.rs:504
Methodinner
( py: Python<'_>, type_ptr: *mut PyTypeObject, subtype: *mut PyTypeObject,
src/internal/pyclass_init.rs:39
Methodinplace_add
(&self, other: &mut MethodWithPyClassArg)
tests/test_methods.rs:861
Methodinplace_add_pyref
(&self, mut other: PyRefMut<'_, MethodWithPyClassArg>)
tests/test_methods.rs:864
Functioninplace_arith
()
tests/test_arithmetics.rs:793
Functioninplace_bitwise
()
tests/test_arithmetics.rs:784
Functioninplace_operations
()
tests/test_arithmetics.rs:164
Methodinstance
(py: Python<'_>)
tests/test_gc.rs:1112
Functioninstance_dict_slot_is_not_clobbered
()
tests/test_class_basics.rs:513
Functioninstance_method
()
tests/test_methods.rs:36
Methodinstance_method
(&self, #[pyo3(from_py_with = get_length)] argument: usize)
tests/test_class_basics.rs:363
Functioninstance_method_with_args
()
tests/test_methods.rs:76
Functionint_from_le_bytes
( py: Python<'py>, bytes: &[u8], )
src/conversions/std/num.rs:694
Functionint_from_ne_bytes
( py: Python<'py>, bytes: &[u8], )
src/conversions/std/num.rs:706
Functionint_not_iterable
()
src/types/iterator.rs:330
Functionint_to_u32_vec
(long: &Bound<'_, PyInt>)
src/conversions/num_bigint.rs:421
Functionint_wrapper_from_py
(v: &Bound<'_, PyAny>)
tests/test_frompy_intopy_roundtrip.rs:207
Functionint_wrapper_into_py
( v: std::borrow::Cow<'_, IntWrapper>, py: Python<'py>, )
tests/test_frompy_intopy_roundtrip.rs:200
Methodintern
Intern the given string This will return a reference to the same Python string object if called repeatedly with the same string. Note that while thi
src/types/string.rs:214
Methodinterned
(&self)
pyo3-ffi/src/cpython/unicodeobject.rs:166
Functioninto
(_a: String, _py: pyo3::Python<'_>)
tests/ui/invalid_intopy_with.rs:11
Methodinto_inner
Consumes this mutex, returning the underlying data.
src/sync/nonpoison.rs:94
Methodinto_inner
Consumes the cell, returning the wrapped value. Returns None if the cell has not yet been written.
src/sync/once_lock.rs:107
Methodinto_iter
Returns an iterator over the `(key, value)` pairs in this frozendict.
src/types/frozendict.rs:327
Methodinto_iter
Returns an iterator of values in this set.
src/types/frozenset.rs:191
Methodinto_iter
(self)
src/types/iterator.rs:156
Methodinto_mapping
(self)
src/types/frozendict.rs:251
Methodinto_new_object
( self, py: Python<'_>, subtype: *mut PyTypeObject, )
src/internal/pyclass_init.rs:34
Methodinto_ptr
(self)
src/instance.rs:864
Methodinto_pyobject
(self, _py: Python<'py>)
src/pycell.rs:491
Methodinto_pyobject
(self, py: Python<'py>)
src/types/slice.rs:159
Methodinto_pyobject
(self, py: Python<'py>)
src/types/float.rs:105
Methodinto_pyobject
(self, py: Python<'py>)
src/types/boolobject.rs:167
Methodinto_pyobject
(self, _py: Python<'py>)
src/types/bytes/writer.rs:153
Methodinto_pyobject
(self, py: Python<'py>)
src/conversions/rust_decimal.rs:102
Methodinto_pyobject
(self, py: Python<'py>)
src/conversions/std/option.rs:22
Methodinto_pyobject
(self, py: Python<'py>)
src/conversions/std/cell.rs:16
Methodinto_result
(self)
src/impl_/pymodule.rs:497
Functionintopytuple_primitive
()
tests/test_various.rs:64
Functionintopytuple_pyclass
()
tests/test_various.rs:78
← previousnext →2,701–2,800 of 4,885, ranked by callers