Debian Codegraph @

src/fileobject.rs

raw symbols SCIP
1 use craterust-analyzer cargo pyo3-ffi 0.28.2 crate/::objectrust-analyzer cargo pyo3-ffi 0.28.2 object/::PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#;
2 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ffirust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/::{c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#};
3
4 pub const PY_STDIOTEXTMODErust-analyzer cargo pyo3-ffi 0.28.2 fileobject/PY_STDIOTEXTMODE.: &str = "b";
5
6 extern "C" {
7 pub fn PyFile_FromFdrust-analyzer cargo pyo3-ffi 0.28.2 PyFile_FromFd().(
8 arg1: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#,
9 arg2: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#,
10 arg3: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#,
11 arg4: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#,
12 arg5: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#,
13 arg6: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#,
14 arg7: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#,
15 arg8: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#,
16 ) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#;
17 #[cfg_attr(PyPy, link_name = "PyPyFile_GetLine")]
18 pub fn PyFile_GetLinerust-analyzer cargo pyo3-ffi 0.28.2 PyFile_GetLine().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, arg2: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#;
19 #[cfg_attr(PyPy, link_name = "PyPyFile_WriteObject")]
20 pub fn PyFile_WriteObjectrust-analyzer cargo pyo3-ffi 0.28.2 PyFile_WriteObject().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, arg2: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, arg3: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
21 #[cfg_attr(PyPy, link_name = "PyPyFile_WriteString")]
22 pub fn PyFile_WriteStringrust-analyzer cargo pyo3-ffi 0.28.2 PyFile_WriteString().(arg1: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, arg2: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
23 #[cfg_attr(PyPy, link_name = "PyPyFile_AsFileDescriptor")]
24 pub fn PyObject_AsFileDescriptorrust-analyzer cargo pyo3-ffi 0.28.2 PyObject_AsFileDescriptor().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
25 }
26
27 #[cfg_attr(windows, link(name = "pythonXY"))]
28 extern "C" {
29 #[deprecated(note = "Python 3.12")]
30 pub static mut Py_FileSystemDefaultEncodingrust-analyzer cargo pyo3-ffi 0.28.2 Py_FileSystemDefaultEncoding.: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#;
31 #[deprecated(note = "Python 3.12")]
32 pub static mut Py_FileSystemDefaultEncodeErrorsrust-analyzer cargo pyo3-ffi 0.28.2 Py_FileSystemDefaultEncodeErrors.: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#;
33 #[deprecated(note = "Python 3.12")]
34 pub static mut Py_HasFileSystemDefaultEncodingrust-analyzer cargo pyo3-ffi 0.28.2 Py_HasFileSystemDefaultEncoding.: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
35 // skipped 3.12-deprecated Py_UTF8Mode
36 }
37
38 // skipped _PyIsSelectable_fd