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