pub struct NonEmptyUtf8Error { /* private fields */ }Expand description
Represents errors returned when the received non-empty bytes are not valid UTF-8.
This is returned from from_non_empty_utf8 and from_non_empty_utf8_mut methods
on NonEmptyStr.
Implementations§
Trait Implementations§
Source§impl Clone for NonEmptyUtf8Error
impl Clone for NonEmptyUtf8Error
Source§fn clone(&self) -> NonEmptyUtf8Error
fn clone(&self) -> NonEmptyUtf8Error
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 NonEmptyUtf8Error
impl Debug for NonEmptyUtf8Error
Source§impl Display for NonEmptyUtf8Error
impl Display for NonEmptyUtf8Error
Source§impl Error for NonEmptyUtf8Error
impl Error for NonEmptyUtf8Error
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<NonEmptyUtf8Error> for MaybeEmptyUtf8Error
impl From<NonEmptyUtf8Error> for MaybeEmptyUtf8Error
Source§fn from(source: NonEmptyUtf8Error) -> Self
fn from(source: NonEmptyUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for NonEmptyUtf8Error
impl From<Utf8Error> for NonEmptyUtf8Error
Source§impl PartialEq for NonEmptyUtf8Error
impl PartialEq for NonEmptyUtf8Error
impl Copy for NonEmptyUtf8Error
impl Eq for NonEmptyUtf8Error
impl StructuralPartialEq for NonEmptyUtf8Error
Auto Trait Implementations§
impl Freeze for NonEmptyUtf8Error
impl RefUnwindSafe for NonEmptyUtf8Error
impl Send for NonEmptyUtf8Error
impl Sync for NonEmptyUtf8Error
impl Unpin for NonEmptyUtf8Error
impl UnwindSafe for NonEmptyUtf8Error
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