pub fn hash(&self) -> PyResult<isize> {
        let v = unsafe { ffi::PyObject_Hash(self.as_ptr()) };
        if v == -1 {
            Err(PyErr::api_call_failed(self.py()))
        } else {
            Ok(v)
        }
    }
/// Retrieves the hash code of self.
///
/// This is equivalent to the Python expression `hash(self)`.
Retrieves the hash code of self.
This is equivalent to the Python expression `hash(self)`.
Retrieves the hash code of self . This is equivalent to the Python expression ` hash ( self ) ` .
pub fn hash(&self) -> PyResult<isize> {
        let v = unsafe { ffi::PyObject_Hash(self.as_ptr()) };
        if v == -1 {
            Err(PyErr::api_call_failed(self.py()))
        } else {
            Ok(v)
        }
    }
pub fn hash ( & self ) -> PyResult < isize > { let v = unsafe { ffi :: PyObject_Hash ( self . as_ptr ( ) ) } ; if v == - 1 { Err ( PyErr :: api_call_failed ( self . py ( ) ) ) } else { Ok ( v ) } }
Retrieves the hash code of self.
Retrieves the hash code of self .
&self