#[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 · 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 ImmutableStringError
impl Debug for ImmutableStringError
Source§impl From<AllocationError> for ImmutableStringError
impl From<AllocationError> for ImmutableStringError
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§impl ReprC for ImmutableStringError
impl ReprC for ImmutableStringError
impl Copy for ImmutableStringError
impl Eq 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