Struct pyo3::pycell::PyBorrowError
source · [−]pub struct PyBorrowError { /* private fields */ }
Expand description
An error type returned by PyCell::try_borrow
.
If this error is allowed to bubble up into Python code it will raise a RuntimeError
.
Trait Implementations
sourceimpl Debug for PyBorrowError
impl Debug for PyBorrowError
sourceimpl Display for PyBorrowError
impl Display for PyBorrowError
sourceimpl From<PyBorrowError> for PyErr
impl From<PyBorrowError> for PyErr
sourcefn from(other: PyBorrowError) -> Self
fn from(other: PyBorrowError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for PyBorrowError
impl Send for PyBorrowError
impl Sync for PyBorrowError
impl Unpin for PyBorrowError
impl UnwindSafe for PyBorrowError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more