#[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 initialize an array or push to array beyond its internal 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ArrayError
Source§impl Debug for ArrayError
impl Debug for ArrayError
Source§impl Display for ArrayError
impl Display for ArrayError
impl Eq for ArrayError
Source§impl From<ArrayError> for ArrayTryCloneError
impl From<ArrayError> for ArrayTryCloneError
Source§fn from(err: ArrayError) -> Self
fn from(err: ArrayError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for ArrayError
impl From<Infallible> for ArrayError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<LengthError> for ArrayError
impl From<LengthError> for ArrayError
Source§impl Hash for ArrayError
impl Hash for ArrayError
Source§impl PartialEq for ArrayError
impl PartialEq for ArrayError
Source§fn eq(&self, other: &ArrayError) -> bool
fn eq(&self, other: &ArrayError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReprC for ArrayError
impl ReprC 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 UnsafeUnpin 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