#[repr(C)]pub enum ArrayError {
AllocationError = 0,
LengthLimitExceeded = 1,
}
Expand description
Represents a general issue that can occure when dealing with arrays.
Variants§
AllocationError = 0
The underlying allocator returned an error, likely due to out of memory.
LengthLimitExceeded = 1
Tried to push to array beyond its length limit.
Trait Implementations§
Source§impl Clone for ArrayError
impl Clone for ArrayError
Source§fn clone(&self) -> ArrayError
fn clone(&self) -> ArrayError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ArrayError
impl Debug for ArrayError
Source§impl From<AllocationError> for ArrayError
impl From<AllocationError> for ArrayError
Source§fn from(_: AllocationError) -> Self
fn from(_: AllocationError) -> Self
Converts to this type from the input type.
Source§impl Hash for ArrayError
impl Hash for ArrayError
Source§impl PartialEq for ArrayError
impl PartialEq for ArrayError
impl Copy for ArrayError
impl Eq for ArrayError
impl StructuralPartialEq for ArrayError
Auto Trait Implementations§
impl Freeze for ArrayError
impl RefUnwindSafe for ArrayError
impl Send for ArrayError
impl Sync for ArrayError
impl Unpin for ArrayError
impl UnwindSafe for ArrayError
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