Enum zone_alloc::BorrowError
source · pub enum BorrowError {
OutOfBounds,
AlreadyBorrowedMutably,
AlreadyBorrowed,
}
Expand description
A borrow error.
Variants§
OutOfBounds
The element is out of bounds.
AlreadyBorrowedMutably
The element is already borrowed mutably.
AlreadyBorrowed
The element is already borrowed immutably.
Trait Implementations§
source§impl Debug for BorrowError
impl Debug for BorrowError
source§impl Display for BorrowError
impl Display for BorrowError
source§impl PartialEq for BorrowError
impl PartialEq for BorrowError
source§fn eq(&self, other: &BorrowError) -> bool
fn eq(&self, other: &BorrowError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BorrowError
impl StructuralEq for BorrowError
impl StructuralPartialEq for BorrowError
Auto Trait Implementations§
impl RefUnwindSafe for BorrowError
impl Send for BorrowError
impl Sync for BorrowError
impl Unpin for BorrowError
impl UnwindSafe for BorrowError
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