#[repr(u8)]pub enum ImmutableStringConstructionError {
AllocationError = 0,
StringTooLong = 1,
}
Expand description
Represents an error that occurs when constructing new ImmutableString
.
Variants§
AllocationError = 0
The allocator failed to allocate memory.
StringTooLong = 1
The passed array is too long, it exceeds MAX_LENGTH
.
Trait Implementations§
Source§impl Clone for ImmutableStringConstructionError
impl Clone for ImmutableStringConstructionError
Source§fn clone(&self) -> ImmutableStringConstructionError
fn clone(&self) -> ImmutableStringConstructionError
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<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 ImmutableStringConstructionError
impl PartialEq for ImmutableStringConstructionError
Source§fn eq(&self, other: &ImmutableStringConstructionError) -> bool
fn eq(&self, other: &ImmutableStringConstructionError) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for ImmutableStringConstructionError
impl Eq for ImmutableStringConstructionError
impl StructuralPartialEq for ImmutableStringConstructionError
Auto Trait Implementations§
impl Freeze for ImmutableStringConstructionError
impl RefUnwindSafe for ImmutableStringConstructionError
impl Send for ImmutableStringConstructionError
impl Sync for ImmutableStringConstructionError
impl Unpin for ImmutableStringConstructionError
impl UnwindSafe for ImmutableStringConstructionError
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