Skip to main content

ToPyException

Trait ToPyException 

Source
pub trait ToPyException {
    // Required method
    fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToPyException for (CompileError, Option<&str>)

Available on crate features codegen or parser only.
Source§

impl ToPyException for (CompileError, Option<&str>, bool)

Available on crate features codegen or parser only.
Source§

impl ToPyException for AccessError

Available on Unix only.
Source§

impl ToPyException for AncillaryPackError

Available on Unix and non-Redox OS only.
Source§

impl ToPyException for CheckedTmError

Available on Unix or Windows only.
Source§

impl ToPyException for Error

Source§

impl ToPyException for FormatParseError

Source§

impl ToPyException for FromBytesWithNulError

Source§

impl ToPyException for FromVecWithNulError

Source§

impl ToPyException for LockfError

Available on Unix and non-Redox OS only.
Source§

impl ToPyException for NulError

Source§

impl ToPyException for SemError

Available on Unix only.

Implementors§

Source§

impl ToPyException for rustpython_vm::exceptions::NulError