Enum depends::error::AnyBorrowError
source · pub enum AnyBorrowError {
BorrowError(BorrowError),
BorrowMutError(BorrowMutError),
}
Expand description
Any error that can occur when borrowing a RefCell inside a node.
Variants§
BorrowError(BorrowError)
Tried to borrow while a write-reference was held.
BorrowMutError(BorrowMutError)
Tried to borrow mutably while a read-reference was held.
Trait Implementations§
source§impl Debug for AnyBorrowError
impl Debug for AnyBorrowError
source§impl Display for AnyBorrowError
impl Display for AnyBorrowError
source§impl Error for AnyBorrowError
impl Error for AnyBorrowError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AnyBorrowError> for ResolveError
impl From<AnyBorrowError> for ResolveError
source§fn from(source: AnyBorrowError) -> Self
fn from(source: AnyBorrowError) -> Self
Converts to this type from the input type.
source§impl From<BorrowError> for AnyBorrowError
impl From<BorrowError> for AnyBorrowError
source§fn from(source: BorrowError) -> Self
fn from(source: BorrowError) -> Self
Converts to this type from the input type.
source§impl From<BorrowMutError> for AnyBorrowError
impl From<BorrowMutError> for AnyBorrowError
source§fn from(source: BorrowMutError) -> Self
fn from(source: BorrowMutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for AnyBorrowError
impl Send for AnyBorrowError
impl Sync for AnyBorrowError
impl Unpin for AnyBorrowError
impl UnwindSafe for AnyBorrowError
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