#[repr(u8)]pub enum ImmutableStringError {
AllocationError = 0,
MaxLengthExceeded = 1,
}Expand description
Represents potential errors when working with ImmutableString.
Variants§
AllocationError = 0
The internal allocator returned an error.
MaxLengthExceeded = 1
Max length exceeded.
Trait Implementations§
Source§impl Clone for ImmutableStringError
impl Clone for ImmutableStringError
Source§fn clone(&self) -> ImmutableStringError
fn clone(&self) -> ImmutableStringError
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 ImmutableStringError
Source§impl Debug for ImmutableStringError
impl Debug for ImmutableStringError
Source§impl Display for ImmutableStringError
impl Display for ImmutableStringError
impl Eq for ImmutableStringError
Source§impl From<CArcArrayError> for ImmutableStringError
impl From<CArcArrayError> for ImmutableStringError
Source§impl From<Infallible> for ImmutableStringError
impl From<Infallible> for ImmutableStringError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<LengthError> for ImmutableStringError
impl From<LengthError> for ImmutableStringError
Source§impl Hash for ImmutableStringError
impl Hash for ImmutableStringError
Source§impl PartialEq for ImmutableStringError
impl PartialEq for ImmutableStringError
Source§fn eq(&self, other: &ImmutableStringError) -> bool
fn eq(&self, other: &ImmutableStringError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReprC for ImmutableStringError
impl ReprC for ImmutableStringError
impl StructuralPartialEq for ImmutableStringError
Auto Trait Implementations§
impl Freeze for ImmutableStringError
impl RefUnwindSafe for ImmutableStringError
impl Send for ImmutableStringError
impl Sync for ImmutableStringError
impl Unpin for ImmutableStringError
impl UnsafeUnpin for ImmutableStringError
impl UnwindSafe for ImmutableStringError
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