pub enum TooLongOrUtf8Error {
TooLong(TooLongForInlining),
Utf8Error(Utf8Error),
}Available on crate feature
str only.Expand description
Error type returned when a string is too long for inline storage or has an invalid UTF-8 sequence.
Variants§
TooLong(TooLongForInlining)
The string is too long for inline storage
Utf8Error(Utf8Error)
The string has an invalid UTF-8 sequence
Trait Implementations§
Source§impl Debug for TooLongOrUtf8Error
impl Debug for TooLongOrUtf8Error
Source§impl Display for TooLongOrUtf8Error
impl Display for TooLongOrUtf8Error
Source§impl Error for TooLongOrUtf8Error
impl Error for TooLongOrUtf8Error
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for TooLongOrUtf8Error
impl RefUnwindSafe for TooLongOrUtf8Error
impl Send for TooLongOrUtf8Error
impl Sync for TooLongOrUtf8Error
impl Unpin for TooLongOrUtf8Error
impl UnsafeUnpin for TooLongOrUtf8Error
impl UnwindSafe for TooLongOrUtf8Error
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