pub struct NotBranchError(/* private fields */);Expand description
A Rust type representing an exception defined in Python code.
This type was created by the pyo3::import_exception! macro - see its documentation
for more information.
Implementations§
Trait Implementations§
Source§impl PyTypeInfo for NotBranchError
impl PyTypeInfo for NotBranchError
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(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
impl DerefToPyAny for NotBranchError
impl ToPyErr for NotBranchError
Auto Trait Implementations§
impl !Freeze for NotBranchError
impl !RefUnwindSafe for NotBranchError
impl !Send for NotBranchError
impl !Sync for NotBranchError
impl Unpin for NotBranchError
impl UnwindSafe for NotBranchError
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
Source§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§const NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
👎Deprecated since 0.27.0: Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.
Name of self. This is used in error messages, for example.