pub trait ToPyException {
// Required method
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef;
}Required Methods§
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
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.
impl ToPyException for (CompileError, Option<&str>)
Available on crate features
codegen or parser only.fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for (CompileError, Option<&str>, bool)
Available on crate features codegen or parser only.
impl ToPyException for (CompileError, Option<&str>, bool)
Available on crate features
codegen or parser only.fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for AccessError
Available on Unix only.
impl ToPyException for AccessError
Available on Unix only.
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for AncillaryPackError
Available on Unix and non-Redox OS only.
impl ToPyException for AncillaryPackError
Available on Unix and non-Redox OS only.
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for CheckedTmError
Available on Unix or Windows only.
impl ToPyException for CheckedTmError
Available on Unix or Windows only.
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for Error
impl ToPyException for Error
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for FormatParseError
impl ToPyException for FormatParseError
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for FromBytesWithNulError
impl ToPyException for FromBytesWithNulError
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for FromVecWithNulError
impl ToPyException for FromVecWithNulError
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for LockfError
Available on Unix and non-Redox OS only.
impl ToPyException for LockfError
Available on Unix and non-Redox OS only.
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for NulError
impl ToPyException for NulError
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef
Source§impl ToPyException for SemError
Available on Unix only.
impl ToPyException for SemError
Available on Unix only.