1 2 3 4 5 6 7 8 9 10 11 12 13
/// Failures to borrow a value.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BorrowFail {
/// Value was not found in the map.
ValueNotFound,
/// Requested an immutable borrow, but value was already borrowed mutably.
BorrowConflictImm,
/// Requested a mutable borrow, but value was already borrowed.
///
/// This variant is returne whether the value was previously borrowed
/// immutably or mutably.
BorrowConflictMut,
}