/dports/devel/mercurial/mercurial-6.0/rust/hg-cpython/src/dirstate/ |
H A D | item.rs | 7 use cpython::PyResult; 30 ) -> PyResult<DirstateItem> { 54 def state(&self) -> PyResult<PyBytes> { 60 def mode(&self) -> PyResult<i32> { 65 def size(&self) -> PyResult<i32> { 70 def mtime(&self) -> PyResult<i32> { 149 def added(&self) -> PyResult<bool> { 215 ) -> PyResult<Self> { 234 ) -> PyResult<PyNone> { 260 ) -> PyResult<PyObject> { in new_as_pyobject() [all …]
|
H A D | copymap.rs | 29 def __len__(&self) -> PyResult<usize> { 33 def __contains__(&self, key: PyObject) -> PyResult<bool> { 41 ) -> PyResult<Option<PyObject>> { 49 ) -> PyResult<Option<PyObject>> { 53 def __iter__(&self) -> PyResult<CopyMapKeysIterator> { 60 def keys(&self) -> PyResult<CopyMapKeysIterator> { 64 def items(&self) -> PyResult<CopyMapItemsIterator> { 76 ) -> PyResult<()> { 81 def copy(&self) -> PyResult<PyDict> { 94 ) -> PyResult<Option<PyBytes>> { in translate_key() [all …]
|
H A D | dirstate_map.rs | 54 ) -> PyResult<PyObject> { 77 ) -> PyResult<PyObject> { 100 ) -> PyResult<Option<PyObject>> { 119 ) -> PyResult<PyObject> { 133 ) -> PyResult<PyNone> { 147 ) -> PyResult<PyObject> { 165 ) -> PyResult<PyNone> { 198 ) -> PyResult<PyBytes> { 223 ) -> PyResult<PyObject> { 379 ) -> PyResult<PyObject> { [all …]
|
H A D | dirs_multiset.rs | 14 exc, ObjectProtocol, PyBytes, PyClone, PyDict, PyErr, PyObject, PyResult, 31 ) -> PyResult<Self> { 54 def addpath(&self, path: PyObject) -> PyResult<PyObject> { 72 def delpath(&self, path: PyObject) -> PyResult<PyObject> { 91 def __iter__(&self) -> PyResult<DirsMultisetKeysIterator> { 99 def __contains__(&self, item: PyObject) -> PyResult<bool> { 107 pub fn from_inner(py: Python, d: DirsMultiset) -> PyResult<Self> { in from_inner() 114 ) -> PyResult<Option<PyBytes>> { in translate_key()
|
H A D | status.rs | 17 PyResult, PyTuple, Python, PythonObject, ToPyObject, 52 ) -> PyResult<PyList> { in collect_bad_matches() 56 let get_error_message = |code: i32| -> PyResult<_> { in collect_bad_matches() 111 ) -> PyResult<PyTuple> { in status_wrapper() 119 let ignore_files: PyResult<Vec<_>> = ignore_files in status_wrapper() 156 let files: PyResult<Vec<HgPathBuf>> = files in status_wrapper() 189 let ignore_patterns: PyResult<Vec<_>> = matcher in status_wrapper() 249 ) -> PyResult<PyTuple> { in build_response()
|
/dports/devel/mercurial/mercurial-6.0/rust/hg-cpython/src/ |
H A D | revlog.rs | 29 ) -> PyResult<cindex::Index> { in pyindex_to_graph() 54 def get_cindex(&self) -> PyResult<PyObject> { 241 def __len__(&self) -> PyResult<usize> { 294 ) -> PyResult<PyObject> { 299 def entry_size(&self) -> PyResult<PyInt> { 304 def rust_ext_compat(&self) -> PyResult<PyInt> { 328 ) -> PyResult<PyObject> { in fill_nodemap() 342 ) -> PyResult<&'a RefCell<Option<NodeTree>>> { in get_nodetree() 359 ) -> PyResult<PyObject> { in call_cindex() 398 ) -> PyResult<PyObject> { in inner_nodemap_data_incremental() [all …]
|
H A D | ancestors.rs | 56 def __next__(&self) -> PyResult<Option<Revision>> { 64 def __contains__(&self, rev: Revision) -> PyResult<bool> { 69 def __iter__(&self) -> PyResult<Self> { 97 def __contains__(&self, rev: Revision) -> PyResult<bool> { 104 def __iter__(&self) -> PyResult<AncestorsIterator> { 108 def __bool__(&self) -> PyResult<bool> { 113 inclusive: bool) -> PyResult<Self> { 134 -> PyResult<MissingAncestors> { 140 def hasbases(&self) -> PyResult<bool> { 154 def bases(&self) -> PyResult<HashSet<Revision>> { [all …]
|
H A D | discovery.rs | 19 ObjectProtocol, PyDict, PyModule, PyObject, PyResult, PyTuple, Python, 42 ) -> PyResult<PartialDiscovery> { 55 def addcommons(&self, commons: PyObject) -> PyResult<PyObject> { 63 def addmissings(&self, missings: PyObject) -> PyResult<PyObject> { 71 def addinfo(&self, sample: PyObject) -> PyResult<PyObject> { 92 def hasinfo(&self) -> PyResult<bool> { 96 def iscomplete(&self) -> PyResult<bool> { 100 def stats(&self) -> PyResult<PyDict> { 110 def commonheads(&self) -> PyResult<HashSet<Revision>> { 116 size: usize) -> PyResult<PyObject> { [all …]
|
H A D | utils.rs | 2 use cpython::{PyBytes, PyDict, PyErr, PyObject, PyResult, PyTuple, Python}; 7 pub fn print_python_trace(py: Python) -> PyResult<PyObject> { in print_python_trace() 28 ) -> PyResult<Node> { in node_from_py_object() 35 pub fn node_from_py_bytes(py: Python, bytes: &PyBytes) -> PyResult<Node> { in node_from_py_bytes()
|
H A D | ref_sharing.rs | 94 def __next__(&self) -> PyResult<$success_type> { 104 def __iter__(&self) -> PyResult<Self> { 113 ) -> PyResult<Self> {
|
H A D | copy_tracing.rs | 8 use cpython::PyResult; 29 ) -> PyResult<PyDict> { in combine_changeset_copies_wrapper() 34 .collect::<PyResult<_>>()?; in combine_changeset_copies_wrapper() 40 revs.iter(py).map(|rev_py| -> PyResult<RevInfo<PyBytes>> { in combine_changeset_copies_wrapper() 167 pub fn init_module(py: Python, package: &str) -> PyResult<PyModule> { in init_module()
|
H A D | dagops.rs | 13 use cpython::{PyDict, PyModule, PyObject, PyResult, Python}; 27 ) -> PyResult<HashSet<Revision>> { in headrevs() 35 pub fn init_module(py: Python, package: &str) -> PyResult<PyModule> { in init_module()
|
/dports/archivers/py-zstandard/zstandard-0.16.0/rust-ext/src/ |
H A D | decompression_writer.rs | 38 ) -> PyResult<Self> { in new() 72 ) -> PyResult<bool> { in __exit__() 85 fn close(&mut self, py: Python) -> PyResult<()> { in close() argument 111 fn fileno(&self, py: Python) -> PyResult<PyObject> { in fileno() 121 fn flush(&self, py: Python) -> PyResult<PyObject> { in flush() 174 fn tell(&self, py: Python) -> PyResult<()> { in tell() argument 195 fn writelines(&self, py: Python, lines: &PyAny) -> PyResult<()> { in writelines() argument 204 fn read(&self, py: Python, size: Option<usize>) -> PyResult<()> { in read() argument 211 fn readall(&self, py: Python) -> PyResult<()> { in readall() argument 219 fn readinto(&self, py: Python, buffer: &PyAny) -> PyResult<()> { in readinto() argument [all …]
|
H A D | compression_parameters.rs | 64 ) -> PyResult<()> { in apply_compression_parameter() argument 73 ) -> PyResult<()> { in apply_compression_parameters() argument 393 ) -> PyResult<Self> { in from_level() 473 fn format(&self) -> PyResult<c_int> { in format() 483 fn window_log(&self) -> PyResult<c_int> { in window_log() 488 fn hash_log(&self) -> PyResult<c_int> { in hash_log() 493 fn chain_log(&self) -> PyResult<c_int> { in chain_log() 503 fn min_match(&self) -> PyResult<c_int> { in min_match() 513 fn strategy(&self) -> PyResult<c_int> { in strategy() 568 fn threads(&self) -> PyResult<c_int> { in threads() [all …]
|
H A D | compression_writer.rs | 43 ) -> PyResult<Self> { in new() 80 ) -> PyResult<bool> { in __exit__() 93 fn fileno(&self, py: Python) -> PyResult<PyObject> { in fileno() 103 fn close(&mut self, py: Python) -> PyResult<()> { in close() argument 140 fn readline(&self, py: Python, size: Option<&PyAny>) -> PyResult<()> { in readline() argument 149 fn readlines(&self, py: Python, hint: Option<&PyAny>) -> PyResult<()> { in readlines() argument 170 fn truncate(&self, py: Python, size: Option<&PyAny>) -> PyResult<()> { in truncate() argument 182 fn writelines(&self, lines: &PyAny) -> PyResult<()> { in writelines() argument 188 fn read(&self, py: Python, size: Option<&PyAny>) -> PyResult<()> { in read() argument 195 fn readall(&self, py: Python) -> PyResult<()> { in readall() argument [all …]
|
H A D | compression_reader.rs | 42 ) -> PyResult<Self> { in new() 74 ) -> PyResult<bool> { in compress_into_buffer() 132 ) -> PyResult<bool> { in __exit__() 153 fn readline(&self, py: Python) -> PyResult<()> { in readline() argument 160 fn readlines(&self, py: Python) -> PyResult<()> { in readlines() argument 167 fn write(&self, _data: &PyAny) -> PyResult<()> { in write() argument 171 fn writelines(&self, _data: &PyAny) -> PyResult<()> { in writelines() argument 179 fn flush(&self) -> PyResult<()> { in flush() argument 183 fn close(&mut self, py: Python) -> PyResult<()> { in close() argument 480 fn __iter__(slf: PyRef<Self>) -> PyResult<()> { in __iter__() argument [all …]
|
H A D | decompression_reader.rs | 43 ) -> PyResult<Self> { in new() 62 ) -> PyResult<bool> { in decompress_into_buffer() 111 ) -> PyResult<bool> { in __exit__() 133 fn readline(&self, py: Python, size: Option<&PyAny>) -> PyResult<()> { in readline() argument 150 fn write(&self, py: Python, data: &PyAny) -> PyResult<()> { in write() argument 158 fn writelines(&self, py: Python, lines: &PyAny) -> PyResult<()> { in writelines() argument 169 fn flush(&self) -> PyResult<()> { in flush() argument 173 fn close(&mut self, py: Python) -> PyResult<()> { in close() argument 198 fn readall<'p>(&mut self, py: Python<'p>) -> PyResult<&'p PyAny> { in readall() 464 fn __iter__(slf: PyRef<Self>) -> PyResult<()> { in __iter__() argument [all …]
|
H A D | frame_parameters.rs | 20 fn content_size(&self) -> PyResult<libc::c_ulonglong> { in content_size() 25 fn window_size(&self) -> PyResult<libc::c_ulonglong> { in window_size() 30 fn dict_id(&self) -> PyResult<libc::c_uint> { in dict_id() 35 fn has_checksum(&self) -> PyResult<bool> { in has_checksum() 44 fn frame_content_size(data: PyBuffer<u8>) -> PyResult<i64> { in frame_content_size() 57 fn frame_header_size(data: PyBuffer<u8>) -> PyResult<usize> { in frame_header_size() 70 fn get_frame_parameters(py: Python, buffer: PyBuffer<u8>) -> PyResult<Py<FrameParameters>> { in get_frame_parameters() 103 pub(crate) fn init_module(module: &PyModule) -> PyResult<()> { in init_module() argument
|
H A D | buffers.rs | 54 fn tobytes<'p>(&self, py: Python<'p>) -> PyResult<&'p PyBytes> { in tobytes() 68 fn bf_getbuffer(slf: PyRefMut<Self>, view: *mut Py_buffer, flags: i32) -> PyResult<()> { in bf_getbuffer() argument 99 fn bf_getbuffer(slf: PyRefMut<Self>, view: *mut Py_buffer, flags: i32) -> PyResult<()> { in bf_getbuffer() argument 154 pub fn new(py: Python, data: &PyAny, segments: PyBuffer<u8>) -> PyResult<Self> { in new() 197 fn segments(slf: PyRef<Self>, py: Python) -> PyResult<ZstdBufferSegments> { in segments() 204 fn tobytes<'p>(&self, py: Python<'p>) -> PyResult<&'p PyBytes> { in tobytes() 215 fn __getitem__(&self, key: isize) -> PyResult<ZstdBufferSegment> { in __getitem__() 280 pub fn new(py: Python, py_args: &PyTuple) -> PyResult<Self> { in new() 313 fn size(&self, py: Python) -> PyResult<usize> { in size() 334 fn __getitem__(&self, key: isize) -> PyResult<ZstdBufferSegment> { in __getitem__() [all …]
|
H A D | compressor.rs | 34 pub(crate) fn setup_cctx(&self, py: Python) -> PyResult<()> { in setup_cctx() argument 68 ) -> PyResult<Self> { in new() 149 fn memory_size(&self) -> PyResult<usize> { in memory_size() 153 fn frame_progression(&self) -> PyResult<(usize, usize, usize)> { in frame_progression() 182 ) -> PyResult<ZstdCompressionChunker> { in chunker() 227 ) -> PyResult<(usize, usize)> { in copy_stream() 341 ) -> PyResult<ZstdBufferWithSegmentsCollection> { in multi_compress_to_buffer() 353 ) -> PyResult<ZstdCompressorIterator> { in read_to_iter() 371 ) -> PyResult<ZstdCompressionReader> { in stream_reader() 395 ) -> PyResult<ZstdCompressionWriter> { in stream_writer() [all …]
|
H A D | decompressor.rs | 34 fn setup_dctx(&self, py: Python, load_dict: bool) -> PyResult<()> { in setup_dctx() argument 69 ) -> PyResult<Self> { in new() 96 ) -> PyResult<(usize, usize)> { in copy_stream() 168 ) -> PyResult<&'p PyBytes> { in decompress() 228 ) -> PyResult<&'p PyBytes> { in decompress_content_dict_chain() 364 ) -> PyResult<ZstdDecompressionObj> { in decompressobj() 390 ) -> PyResult<ZstdBufferWithSegmentsCollection> { in multi_decompress_to_buffer() 404 ) -> PyResult<ZstdDecompressorIterator> { in read_to_iter() 446 ) -> PyResult<ZstdDecompressionReader> { in stream_reader() 474 ) -> PyResult<ZstdDecompressionWriter> { in stream_writer() [all …]
|
H A D | compression_dict.rs | 48 pub(crate) fn load_into_cctx(&self, cctx: &CCtx) -> PyResult<()> { in load_into_cctx() argument 60 pub(crate) fn ensure_ddict(&mut self) -> PyResult<()> { in ensure_ddict() argument 73 pub(crate) fn load_into_dctx(&mut self, dctx: &DCtx) -> PyResult<()> { in load_into_dctx() argument 87 fn new(py: Python, buffer: PyBuffer<u8>, dict_type: Option<u32>) -> PyResult<Self> { in new() 120 fn as_bytes<'p>(&self, py: Python<'p>) -> PyResult<&'p PyBytes> { in as_bytes() 134 ) -> PyResult<()> { in precompute_compress() argument 214 ) -> PyResult<ZstdCompressionDict> { in train_dictionary() 286 pub(crate) fn init_module(module: &PyModule) -> PyResult<()> { in init_module() argument
|
H A D | stream.rs | 21 fn input_buffer(&mut self, py: Python) -> PyResult<Option<ZSTD_inBuffer>>; in input_buffer() 48 fn input_buffer(&mut self, py: Python) -> PyResult<Option<ZSTD_inBuffer>> { in input_buffer() 114 fn input_buffer(&mut self, _py: Python) -> PyResult<Option<ZSTD_inBuffer>> { in input_buffer() 139 ) -> PyResult<Box<dyn InBufferSource + Send>> { in make_in_buffer_source()
|
H A D | decompressionobj.rs | 25 pub fn new(dctx: Arc<DCtx<'static>>, write_size: usize) -> PyResult<Self> { in new() 36 fn decompress<'p>(&mut self, py: Python<'p>, data: PyBuffer<u8>) -> PyResult<&'p PyAny> { in decompress() 86 fn flush<'p>(&self, py: Python<'p>, length: Option<usize>) -> PyResult<&'p PyBytes> { in flush()
|
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/rust/arrow-pyarrow-integration-testing/src/ |
H A D | lib.rs | 71 fn to_rust(ob: PyObject, py: Python) -> PyResult<ArrayRef> { in to_rust() 89 fn to_py(array: ArrayRef, py: Python) -> PyResult<PyObject> { in to_py() 104 fn double(array: PyObject, py: Python) -> PyResult<PyObject> { in double() 127 fn double_py(lambda: PyObject, py: Python) -> PyResult<bool> { in double_py() 144 fn substring(array: PyObject, start: i64, py: Python) -> PyResult<PyObject> { in substring() 158 fn concatenate(array: PyObject, py: Python) -> PyResult<PyObject> { in concatenate() 171 fn arrow_pyarrow_integration_testing(_py: Python, m: &PyModule) -> PyResult<()> { in arrow_pyarrow_integration_testing() argument
|