#[repr(u8)]pub enum ImmutableArrayConstructionError {
AllocationError = 0,
ArrayTooLong = 1,
}
Expand description
Represents an error that occurs when constructing new ImmutableArray
.
Variants§
AllocationError = 0
The allocator failed to allocate memory.
ArrayTooLong = 1
The passed array is too long, it exceeds MAX_LENGTH
.
Trait Implementations§
Source§impl Clone for ImmutableArrayConstructionError
impl Clone for ImmutableArrayConstructionError
Source§fn clone(&self) -> ImmutableArrayConstructionError
fn clone(&self) -> ImmutableArrayConstructionError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<AllocationError> for ImmutableArrayConstructionError
impl From<AllocationError> for ImmutableArrayConstructionError
Source§fn from(_: AllocationError) -> Self
fn from(_: AllocationError) -> Self
Converts to this type from the input type.
Source§impl From<ImmutableArrayConstructionError> for ImmutableStringConstructionError
impl From<ImmutableArrayConstructionError> for ImmutableStringConstructionError
Source§fn from(error: ImmutableArrayConstructionError) -> Self
fn from(error: ImmutableArrayConstructionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImmutableArrayConstructionError
impl PartialEq for ImmutableArrayConstructionError
Source§fn eq(&self, other: &ImmutableArrayConstructionError) -> bool
fn eq(&self, other: &ImmutableArrayConstructionError) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for ImmutableArrayConstructionError
impl Eq for ImmutableArrayConstructionError
impl StructuralPartialEq for ImmutableArrayConstructionError
Auto Trait Implementations§
impl Freeze for ImmutableArrayConstructionError
impl RefUnwindSafe for ImmutableArrayConstructionError
impl Send for ImmutableArrayConstructionError
impl Sync for ImmutableArrayConstructionError
impl Unpin for ImmutableArrayConstructionError
impl UnwindSafe for ImmutableArrayConstructionError
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