fn type_ptr(&self, py: Python) -> *mut ffi::PyObject {
        match unsafe { &*self.state.get() } {
            // In lazy type case, normalize before returning ptype in case the type is not a valid
            // exception type.
            Some(PyErrState::LazyTypeAndValue { .. }) => self.normalized(py).ptype.as_ptr(),
            Some(PyErrState::LazyValue { ptype, .. }) => ptype.as_ptr(),
            Some(PyErrState::FfiTuple { ptype, .. }) => ptype.as_ptr(),
            Some(PyErrState::Normalized(n)) => n.ptype.as_ptr(),
            None => panic!("Cannot access exception type while normalizing"),
        }
    }
/// Returns borrowed reference to this Err's type
Returns borrowed reference to this Err's type
Returns borrowed reference to this Err ' s type
fn type_ptr(&self, py: Python) -> *mut ffi::PyObject {
        match unsafe { &*self.state.get() } {
            // In lazy type case, normalize before returning ptype in case the type is not a valid
            // exception type.
            Some(PyErrState::LazyTypeAndValue { .. }) => self.normalized(py).ptype.as_ptr(),
            Some(PyErrState::LazyValue { ptype, .. }) => ptype.as_ptr(),
            Some(PyErrState::FfiTuple { ptype, .. }) => ptype.as_ptr(),
            Some(PyErrState::Normalized(n)) => n.ptype.as_ptr(),
            None => panic!("Cannot access exception type while normalizing"),
        }
    }
fn type_ptr ( & self , py : Python ) -> * mut ffi :: PyObject { match unsafe { & * self . state . get ( ) } { // In lazy type case, normalize before returning ptype in case the type is not a valid // exception type. Some ( PyErrState :: LazyTypeAndValue { .. } ) => self . normalized ( py ) . ptype . as_ptr ( ) , Some ( PyErrState :: LazyValue { ptype , .. } ) => ptype . as_ptr ( ) , Some ( PyErrState :: FfiTuple { ptype , .. } ) => ptype . as_ptr ( ) , Some ( PyErrState :: Normalized ( n ) ) => n . ptype . as_ptr ( ) , None => panic ! ( " " ) , } }
Returns borrowed reference to this Err's type
Returns borrowed reference to this Err ' s type
&self
py
Python
&self
py
Python