pub struct PanicException(/* private fields */);
Expand description
The exception raised when Rust code called from Python panics.
Like SystemExit, this exception is derived from BaseException so that it will typically propagate all the way through the stack and cause the Python interpreter to exit.
Implementations§
Trait Implementations§
Source§impl AsPyPointer for PanicException
impl AsPyPointer for PanicException
Source§impl AsRef<PyAny> for PanicException
impl AsRef<PyAny> for PanicException
Source§impl Deref for PanicException
impl Deref for PanicException
Source§impl PyTypeInfo for PanicException
impl PyTypeInfo for PanicException
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
impl DerefToPyAny for PanicException
impl ToPyErr for PanicException
Auto Trait Implementations§
impl !Freeze for PanicException
impl !RefUnwindSafe for PanicException
impl !Send for PanicException
impl !Sync for PanicException
impl Unpin for PanicException
impl UnwindSafe for PanicException
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more