MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

Functionadd_two_values
(obj: &Value, obj2: &Value)
tests/test_coroutine.rs:432
Methodadd_watcher
( py: Python<'_>, callback: WatchCallback, )
src/types/context.rs:49
Functionaddress_sanitizer
(session: nox.Session)
noxfile.py:1242
Methodadvance_back_by
(&mut self, n: usize)
src/types/tuple.rs:507
Methodadvance_back_by
(&mut self, n: usize)
src/types/list.rs:838
Methodadvance_by
(&mut self, n: usize)
src/types/tuple.rs:457
Methodadvance_by
(&mut self, n: usize)
src/types/list.rs:767
Methodall
(&mut self, mut f: F)
src/types/list.rs:675
Functionalloc_with_freelist
Implementation of tp_alloc for `freelist` classes. # Safety - `subtype` must be a valid pointer to the type object of T or a subclass. - The calling
src/impl_/pyclass.rs:993
Methodany
(&mut self, mut f: F)
src/types/list.rs:693
Methodappend
(&mut self, value: Py<PyAny>)
tests/test_proto_methods.rs:354
Functionappend_to_inittab
()
src/tests/hygiene/misc.rs:35
Functionapply_build_env_preserves_target_implementation
()
pyo3-build-config/src/impl_.rs:3926
Functionarbitrary_python_code
()
pytests/tests/test_misc.py:109
Methodargs_as_vec
(&self, args: Vec<i32>)
tests/test_methods.rs:444
Functionargs_kwargs
( args: Tuple<'py>, kwargs: Option<Dict<'py>>, )
pytests/src/pyfunctions.rs:74
Functionargs_kwargs
( args: Py<PyTuple>, kwargs: Option<Py<PyDict>>, )
src/call.rs:233
Functionargs_kwargs
( args: Py<PyTuple>, kwargs: Option<Py<PyDict>>, )
tests/test_coroutine.rs:460
Methodarguments
(self, py: Python<'_>)
src/err/impls.rs:77
Methodarguments
(self, py: Python<'_>)
src/err/cast_error.rs:70
Functionarith
()
tests/test_arithmetics.rs:759
Functionarray_into_tuple
( py: Python<'py>, array: [Bound<'py, PyAny>; N], )
src/types/tuple.rs:954
Functionarray_to_array_i32
(arr: [i32; 3])
pytests/src/sequence.rs:14
Methodas_cstr
Returns the capsule name as a `&CStr`. Note: this method is a thin wrapper around [`CStr::from_ptr`] so (as of Rust 1.91) incurs a length calculation
src/types/capsule.rs:614
Methodas_local_tz
(_: private::Token)
src/conversion.rs:437
Methodas_local_tz
(_: crate::conversion::private::Token)
src/conversions/chrono.rs:556
Methodas_ref
(&self)
src/inspect.rs:464
Functionascii
()
src/ffi/tests.rs:178
Functionascii_object_bitfield
()
src/ffi/tests.rs:123
Functionassert_immutable
()
src/pycell/impl_.rs:798
Functionassert_immutable_type_supported
()
src/impl_/pyclass/assertions.rs:12
Functionassert_immutable_with_mutable_ancestor
()
src/pycell/impl_.rs:803
Functionassert_iterator
(obj: &crate::Bound<'_, crate::PyAny>)
src/types/iterator.rs:390
Functionassert_mutable
()
src/pycell/impl_.rs:797
Functionassert_mutable_with_mutable_ancestor
()
src/pycell/impl_.rs:799
Functionassert_pyclass_send_sync
Helper function that can be used at compile time to emit a diagnostic if the type does not implement `Send` or `Sync` when it should; the mere act of
src/impl_/pyclass/assertions.rs:4
Functionassert_type_implements_traverse
(implements_traverse: bool)
src/impl_/pyclass/assertions.rs:20
Functionassign_sequence_item_from_mapping
( obj: *mut ffi::PyObject, index: ffi::Py_ssize_t, value: *mut ffi::PyObject, )
src/impl_/pyclass.rs:1209
Methodassume_attached
()
src/marker.rs:792
Methodattach
(f: F)
src/marker.rs:414
Methodattach
PyO3 internal API for attaching to the Python interpreter. The public API is Python::attach. If the thread was already attached via PyO3, this return
src/internal/state.rs:67
Methodattach_unchecked
(f: F)
src/marker.rs:490
Methodattach_unchecked
Acquires the `AttachGuard` without performing any state checking. This can be called in "unsafe" contexts where the normal interpreter state checking
src/internal/state.rs:137
Methodattribute
An attribute of a given value: `value.attr`
pyo3-macros-backend/src/py_expr.rs:147
Methodb
()
tests/test_class_attributes.rs:36
Functionbad_intopyobject_doesnt_cause_leaks
()
src/types/tuple.rs:1455
Functionbad_intopyobject_doesnt_cause_leaks
()
src/types/list.rs:1476
Functionbad_intopyobject_doesnt_cause_leaks_2
()
src/types/tuple.rs:1518
Methodbail
(current: isize)
src/internal/state.rs:336
Methodbar
()
tests/test_class_attributes.rs:41
Methodbar
(&self)
tests/test_class_basics.rs:91
Methodbar_static
()
tests/test_class_basics.rs:95
Methodbase_method
(&self, x: usize)
tests/test_inheritance.rs:102
Methodbase_set
(&mut self, fn_: &Bound<'_, PyAny>)
tests/test_inheritance.rs:105
Methodbases
(&self)
src/types/typeobject.rs:238
Functionbench
(session: nox.Session)
noxfile.py:350
Functionbench
(session: nox.Session)
pytests/noxfile.py:54
Functionbench
(session: nox.Session)
examples/word-count/noxfile.py:22
Functionbench_call
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_call.rs:49
Functionbench_call_0
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_call.rs:16
Functionbench_call_1
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_call.rs:30
Functionbench_call_method
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_call.rs:132
Functionbench_call_method_0
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_call.rs:84
Functionbench_call_method_1
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_call.rs:105
Functionbench_call_method_one_arg
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_call.rs:163
Functionbench_call_one_arg
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_call.rs:69
Functionbench_clean_attach
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_attach.rs:5
Functionbench_collect_generic_iterator
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_any.rs:74
Functionbench_dirty_attach
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_attach.rs:10
Functionbench_empty_pool_attach
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_attach.rs:16
Functionbench_first_time_init
(c: &mut Criterion)
pyo3-benches/benches/bench_pyclass.rs:91
Functionbench_identify_object_type
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_any.rs:64
Functionbench_ordered_dunder_methods
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_comparisons.rs:46
Functionbench_ordered_richcmp
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_comparisons.rs:55
Functionbench_pyclass
(c: &mut Criterion)
pyo3-benches/benches/bench_pyclass.rs:48
Functionbiguint_negative
()
src/conversions/num_bigint.rs:700
Functionbinary_arithmetic
()
tests/test_arithmetics.rs:266
Methodbinary_inplace_operator
Specialized constructor for binary inplace operators
pyo3-macros-backend/src/pymethod.rs:1466
Methodbinary_operator
(fragment: &'static str)
pyo3-macros-backend/src/pymethod.rs:1756
Methodbitnot
(&self)
src/types/any.rs:975
Functionbitwise
()
tests/test_arithmetics.rs:750
Functionblah
()
tests/ui/missing_intopy.rs:10
Functionbless_output_files_normalized
( path: &std::path::Path, output: &[u8], errors: &mut Vec<ui_test::Error>, config: &ui_test::p
tests/test_compile_error.rs:344
Methodborrow
(&self)
src/instance.rs:552
Methodborrow
(&self)
src/pybacked.rs:90
Methodborrow_checker_during_gc
(class_object: PyBorrowedUnbound<'_, T>)
src/pycell/impl_.rs:201
Functionborrow_mut_fails
(foo: Py<Foo>, py: Python)
tests/ui/invalid_frozen_pyclass_borrow.rs:15
Functionborrow_mut_of_child_fails
(child: Py<ImmutableChild>, py: Python)
tests/ui/invalid_frozen_pyclass_borrow.rs:26
Methodborrow_value
(&self)
tests/test_coroutine.rs:386
Methodborrow_value_or_default
(&'a self, default: &'a str)
tests/test_coroutine.rs:389
Functionborrowed_ptr_constructors
()
src/instance.rs:2672
Methodborrowed_sequence_into_pyobject
( iter: I, py: Python<'py>, _: private::Token, )
src/conversion.rs:83
Methodborrowed_sequence_into_pyobject
( iter: I, py: Python<'py>, _: crate::conversion::private::Token, )
src/conversions/std/num.rs:234
Functionborrowed_value_with_lifetime_of_self
()
tests/test_getter_setter.rs:245
Functionbound_borrow_methods
()
src/instance.rs:2810
Functionbound_from_borrowed_ptr_constructors
()
src/instance.rs:2630
Methodbuf_ptr
(&self)
src/buffer.rs:617
Functionbuffer_inplace_add
(py: Python<'_>, x: PyBuffer<i32>, y: PyBuffer<i32>)
tests/test_pyfunction.rs:120
Methodbug
()
tests/ui/invalid_pyfunction_definition.rs:11
Functionbuild_derive_into_pyobject
(tokens: &DeriveInput)
pyo3-macros-backend/src/intopyobject.rs:488
← previousnext →1,901–2,000 of 4,885, ranked by callers