pub fn len(&self) -> PyResult<usize> {
        let v = unsafe { ffi::PyObject_Size(self.as_ptr()) };
        if v == -1 {
            Err(PyErr::fetch(self.py()))
        } else {
            Ok(v as usize)
        }
    }
/// Returns the length of the sequence or mapping.
///
/// This is equivalent to the Python expression `len(self)`.
Returns the length of the sequence or mapping.
This is equivalent to the Python expression `len(self)`.
Returns the length of the sequence or mapping . This is equivalent to the Python expression ` len ( self ) ` .
pub fn len(&self) -> PyResult<usize> {
        let v = unsafe { ffi::PyObject_Size(self.as_ptr()) };
        if v == -1 {
            Err(PyErr::fetch(self.py()))
        } else {
            Ok(v as usize)
        }
    }
pub fn len ( & self ) -> PyResult < usize > { let v = unsafe { ffi :: PyObject_Size ( self . as_ptr ( ) ) } ; if v == - 1 { Err ( PyErr :: fetch ( self . py ( ) ) ) } else { Ok ( v as usize ) } }
Returns the length of the sequence or mapping.
Returns the length of the sequence or mapping .
&self
&self