pub struct ProtectedBranchHookDeclined(/* 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 ProtectedBranchHookDeclined
impl PyTypeInfo for ProtectedBranchHookDeclined
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 ProtectedBranchHookDeclined
impl ToPyErr for ProtectedBranchHookDeclined
Auto Trait Implementations§
impl !Freeze for ProtectedBranchHookDeclined
impl !RefUnwindSafe for ProtectedBranchHookDeclined
impl !Send for ProtectedBranchHookDeclined
impl !Sync for ProtectedBranchHookDeclined
impl Unpin for ProtectedBranchHookDeclined
impl UnwindSafe for ProtectedBranchHookDeclined
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.