pub enum MutateError {
BorrowMutError(BorrowMutError),
Finalized,
}
Expand description
An error resulting from MutRc::with_mut
.
Variants§
BorrowMutError(BorrowMutError)
The shared value is already borrowed.
This can be caused if the same shared value is accessed from within MutRc::with
or MutRc::with_mut
.
Finalized
There exists an aliasing Rc<T>
returned by MutRc::finalize
on the same shared value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MutateError
impl RefUnwindSafe for MutateError
impl Send for MutateError
impl Sync for MutateError
impl Unpin for MutateError
impl UnwindSafe for MutateError
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