pub enum BimodalArrayError {
UnsupportedLength,
AllocationFailed(TryReserveError),
CouldNotAcquireArrayLock,
CouldNotAcquireElementLock,
}Expand description
Errors that can occur when constructing or using a bimodal_array.
Variants§
UnsupportedLength
The provided collection length is not supported.
Internally, bimodal_array reserves certain length values for state
encoding. Currently, a length of usize::MAX is rejected.
AllocationFailed(TryReserveError)
Allocation failed.
This typically occurs when reserving memory for the element handle
storage. The contained TryReserveError provides additional details
about whether the failure was due to capacity overflow or allocator
refusal.
CouldNotAcquireArrayLock
The array-wide lock could not be acquired.
This happens when one or more ElementGuard<T> values are currently
active.
CouldNotAcquireElementLock
The element-level lock could not be acquired.
This happens when an ArrayGuard<T> is currently active.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BimodalArrayError
impl RefUnwindSafe for BimodalArrayError
impl Send for BimodalArrayError
impl Sync for BimodalArrayError
impl Unpin for BimodalArrayError
impl UnsafeUnpin for BimodalArrayError
impl UnwindSafe for BimodalArrayError
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