pub enum ParseCompactStringError {
LengthError(CompactStringLengthError),
Utf8Error(Utf8Error),
}
Expand description
Errors that can occur when parsing from_utf8
.
Variants§
LengthError(CompactStringLengthError)
Utf8Error(Utf8Error)
Trait Implementations§
Source§impl Debug for ParseCompactStringError
impl Debug for ParseCompactStringError
Source§impl Display for ParseCompactStringError
impl Display for ParseCompactStringError
Source§impl Error for ParseCompactStringError
impl Error for ParseCompactStringError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CompactStringLengthError> for ParseCompactStringError
impl From<CompactStringLengthError> for ParseCompactStringError
Source§fn from(source: CompactStringLengthError) -> Self
fn from(source: CompactStringLengthError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for ParseCompactStringError
impl From<Utf8Error> for ParseCompactStringError
Source§impl PartialEq for ParseCompactStringError
impl PartialEq for ParseCompactStringError
impl StructuralPartialEq for ParseCompactStringError
Auto Trait Implementations§
impl Freeze for ParseCompactStringError
impl RefUnwindSafe for ParseCompactStringError
impl Send for ParseCompactStringError
impl Sync for ParseCompactStringError
impl Unpin for ParseCompactStringError
impl UnwindSafe for ParseCompactStringError
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