##// END OF EJS Templates
rust-index: a property to identify the Rust index as such...
Georges Racinet -
r52141:8b243e2a default
parent child Browse files
Show More
@@ -14,9 +14,9 b' use crate::{'
14 use cpython::{
14 use cpython::{
15 buffer::{Element, PyBuffer},
15 buffer::{Element, PyBuffer},
16 exc::{IndexError, ValueError},
16 exc::{IndexError, ValueError},
17 ObjectProtocol, PyBytes, PyClone, PyDict, PyErr, PyInt, PyList, PyModule,
17 ObjectProtocol, PyBool, PyBytes, PyClone, PyDict, PyErr, PyInt, PyList,
18 PyObject, PyResult, PySet, PyString, PyTuple, Python, PythonObject,
18 PyModule, PyObject, PyResult, PySet, PyString, PyTuple, Python,
19 ToPyObject, UnsafePyLeaked,
19 PythonObject, ToPyObject, UnsafePyLeaked,
20 };
20 };
21 use hg::{
21 use hg::{
22 errors::HgError,
22 errors::HgError,
@@ -451,6 +451,11 b' py_class!(pub class MixedIndex |py| {'
451 Ok(rust_res)
451 Ok(rust_res)
452 }
452 }
453
453
454 @property
455 def is_rust(&self) -> PyResult<PyBool> {
456 Ok(false.to_py_object(py))
457 }
458
454 });
459 });
455
460
456 /// Take a (potentially) mmap'ed buffer, and return the underlying Python
461 /// Take a (potentially) mmap'ed buffer, and return the underlying Python
General Comments 0
You need to be logged in to leave comments. Login now