MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

Functionextract_str_cast_success
(bench: &mut Bencher<'_>)
pyo3-benches/benches/bench_extract.rs:30
Functionextract_str_extract_fail
(bench: &mut Bencher<'_>)
pyo3-benches/benches/bench_extract.rs:18
Functionextract_str_extract_success
(bench: &mut Bencher<'_>)
pyo3-benches/benches/bench_extract.rs:10
Functionextract_struct_field
( obj: &'a Bound<'py, PyAny>, struct_name: &str, field_name: &str, )
src/impl_/frompyobject.rs:46
Functionextract_struct_field_with
( extractor: fn(&'a Bound<'py, PyAny>) -> PyResult<T>, obj: &'a Bound<'py, PyAny>, struct_name: &s
src/impl_/frompyobject.rs:65
Functionextract_traceback
Flattens a chain of errors into a single string.
src/impl_/frompyobject.rs:35
Functionextract_traceback
Helper function that concatenates the error message from each error in the traceback into a single string that can be tested.
tests/test_pyfunction.rs:418
Functionextract_traceback
Helper function that concatenates the error message from each error in the traceback into a single string that can be tested.
tests/test_frompyobject.rs:16
Functionextract_tuple_struct_field
( obj: &'a Bound<'py, PyAny>, struct_name: &str, index: usize, )
src/impl_/frompyobject.rs:96
Functionextract_tuple_struct_field_with
( extractor: fn(&'a Bound<'py, PyAny>) -> PyResult<T>, obj: &'a Bound<'py, PyAny>, struct_name: &s
src/impl_/frompyobject.rs:115
Methodextract_unit_variant_data
( variant: &mut syn::Variant, )
pyo3-macros-backend/src/pyclass.rs:618
Functionf
(#[pyo3(from_py_with = "bytes_from_py")] _bytes: Vec<u8>)
tests/ui/invalid_argument_attributes.rs:27
Functionfail_callback
(_py: Python<'_>, _event: ContextEvent<'_, '_>)
src/types/context.rs:548
Functionfail_to_open_file
()
tests/test_exceptions.rs:16
Functionfailed_to_extract_enum
( py: Python<'_>, type_name: &str, variant_names: &[&str], error_names: &[&str], errors: &
src/impl_/frompyobject.rs:7
Functionfailed_to_fetch
()
src/err/mod.rs:662
Methodfails_to_init
()
tests/test_class_attributes.rs:165
Methodfast
Method with low overhead to benchmark method call performance.
pyo3-benches/benches/bench_pyclass.rs:31
Methodfastcall_cfunction_with_keywords
( ml_name: &'static CStr, cfunction: ffi::PyCFunctionFastWithKeywords, ml_doc: &'stati
src/impl_/pymethods.rs:197
Methodfetch
(py: Python<'_>)
src/err/mod.rs:336
Functionfetching_normalized_panic_exception_resumes_unwind
()
src/err/mod.rs:858
Functionfetching_panic_exception_resumes_unwind
()
src/err/mod.rs:841
Functionffi_check
(session: nox.Session)
noxfile.py:1343
Functionfibonacci_generator
()
src/types/iterator.rs:241
Functionfibonacci_generator_bound
()
src/types/iterator.rs:298
Methodfield_input_type
(from_py_with: &Option<FromPyWithAttribute>, ty: &syn::Type)
pyo3-macros-backend/src/frompyobject.rs:482
Methodfield_output_type
(into_py_with: &Option<IntoPyWithAttribute>, ty: &syn::Type)
pyo3-macros-backend/src/intopyobject.rs:388
Methodfilename
(&self)
src/types/module.rs:481
Methodfind
(&mut self, mut predicate: P)
src/types/list.rs:711
Methodfind_map
(&mut self, mut f: F)
src/types/dict.rs:651
Methodfind_map
(&mut self, mut f: F)
src/types/list.rs:729
Functionfirst_argument_not_module
( _string: &str, //~^ ERROR: the trait bound `&str: From<&pyo3::Bound<'_, pyo3::types::PyModule>>` is
tests/ui/invalid_pyfunctions.rs:39
Functionfirst_time_init
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_pyclass.rs:37
Methodfixed_offset
Equivalent to `datetime.timezone` constructor
src/types/datetime.rs:888
Methodflags
(mut self, flags: c_int)
src/impl_/pymethods.rs:229
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
pyo3-build-config/src/errors.rs:51
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
pyo3-build-config/src/impl_.rs:1017
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
pyo3-macros-backend/src/method.rs:1241
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
pytests/src/comparisons.rs:107
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
pyo3-ffi/src/methodobject.rs:207
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
pyo3-ffi/src/object.rs:81
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/buffer.rs:62
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/instance.rs:763
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/pycell.rs:510
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/pybacked.rs:102
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/pyclass/guard.rs:299
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/platform/thread/thread_local.rs:32
Methodfmt
(&self, f: &mut ::core::fmt::Formatter<'_>)
src/tests/hygiene/pyclass.rs:142
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/err/mod.rs:673
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/err/cast_error.rs:98
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/impl_/pymethods.rs:265
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/test_compile_error.rs:399
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/test_arithmetics.rs:395
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
tests/test_various.rs:183
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
tests/test_exceptions.rs:48
Methodfmt
(&self, f: &mut Formatter<'_>)
tests/test_class_formatting.rs:17
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
tests/ui/invalid_result_conversion.rs:20
Methodfmt
(&self, f: &mut Formatter<'_>)
tests/ui/invalid_pyclass_args.rs:130
Methodfold
(zoned: &Zoned)
src/conversions/jiff.rs:297
Functionfoo
(x: u32)
src/types/capsule.rs:743
Functionfoo
( _py: crate::Python<'_>, _m: &crate::Bound<'_, crate::types::PyModule>, )
src/tests/hygiene/pymodule.rs:9
Functionfoo
(x: i32)
tests/test_pyfunction.rs:587
Functionfoo
()
tests/test_append_to_inittab.rs:7
Functionfoo
()
tests/ui/invalid_pymodule_glob.rs:6
Functionfoo
()
tests/ui/invalid_pyclass_item.rs:4
Functionfoo
~^ ERROR: use of deprecated constant `module_with_pyfn::PYFN_ATTRIBUTE`: `pyfn` will be removed in a future PyO3 version, use declarative `#[pymodule]
tests/ui/deprecated_pyfn.rs:9
Methodfoo
(&self)
tests/test_class_conversion.rs:41
Methodfoo
(&self)
tests/test_class_basics.rs:99
Methodfoo
(&self)
tests/ui/invalid_async.rs:19
Functionfor_all_fields
(input: proc_macro::TokenStream)
pyo3-ffi-check/macro/src/lib.rs:190
Functionfor_all_functions
(_input: proc_macro::TokenStream)
pyo3-ffi-check/macro/src/lib.rs:640
Functionfor_all_statics
(input: proc_macro::TokenStream)
pyo3-ffi-check/macro/src/lib.rs:127
Functionfor_all_structs
(input: proc_macro::TokenStream)
pyo3-ffi-check/macro/src/lib.rs:29
Functionformat_complex
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_pystring_from_fmt.rs:13
Functionformat_ffi_extern
(session: nox.Session)
noxfile.py:1157
Functionformat_guide
(session: nox.Session)
noxfile.py:989
Functionformat_simple
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_pystring_from_fmt.rs:5
Functionformat_traceback
()
src/types/traceback.rs:136
Functionfree_with_freelist
Implementation of tp_free for `freelist` classes. # Safety - `obj` must be a valid pointer to an instance of T (not a subclass). - The calling thread
src/impl_/pyclass.rs:1019
Methodfrom
(value: String)
pyo3-build-config/src/errors.rs:81
Methodfrom
(value: PyFunctionWarningAttribute)
pyo3-macros-backend/src/pyfunction.rs:121
Methodfrom
(element: PyExpr)
pyo3-macros-backend/src/introspection.rs:503
Methodfrom
(value: u32)
pyo3-ffi/src/cpython/unicodeobject.rs:254
Methodfrom
(instance: &'a Bound<'py, T>)
src/instance.rs:1219
Methodfrom
(other: PyBorrowError)
src/pycell.rs:736
Methodfrom
(py_bytes: Bound<'_, PyBytes>)
src/pybacked.rs:264
Methodfrom
(value: T)
src/pyclass_init.rs:245
Methodfrom
Creates a new Python `bytearray` object from another Python object that implements the buffer protocol.
src/types/bytearray.rs:102
Methodfrom
Creates a new Python `memoryview` object from another Python object that implements the buffer protocol.
src/types/memoryview.rs:37
Methodfrom
(value: PyClassGuardError<'_, '_>)
src/pyclass/guard.rs:398
Methodfrom
(t: T)
src/platform/sync.rs:115
Methodfrom
(e: jiff::Error)
src/conversions/jiff.rs:568
Methodfrom
(value: &NaiveDate)
src/conversions/chrono.rs:568
Methodfrom
(mut error: anyhow::Error)
src/conversions/anyhow.rs:114
Methodfrom
(mut error: Report)
src/conversions/eyre.rs:120
Methodfrom
(err: Bound<'py, T>)
src/err/mod.rs:755
Methodfrom
(err: PyErr)
src/err/impls.rs:10
Methodfrom
(err: CastError<'_, '_>)
src/err/cast_error.rs:85
Methodfrom
(err: MyError)
tests/test_various.rs:190
Methodfrom
(_error: CustomError)
tests/test_class_new.rs:193
← previousnext →2,401–2,500 of 4,885, ranked by callers