Struct encode_unicode::error::EmptyStrError
source · [−]pub struct EmptyStrError;
Expand description
Error returned by Utf8Char::from_str_start()
and Utf16Char::from_str_start()
when called with an empty string.
Trait Implementations
sourceimpl Clone for EmptyStrError
impl Clone for EmptyStrError
sourcefn clone(&self) -> EmptyStrError
fn clone(&self) -> EmptyStrError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EmptyStrError
impl Debug for EmptyStrError
sourceimpl Display for EmptyStrError
impl Display for EmptyStrError
sourceimpl Error for EmptyStrError
impl Error for EmptyStrError
sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl PartialEq<EmptyStrError> for EmptyStrError
impl PartialEq<EmptyStrError> for EmptyStrError
impl Copy for EmptyStrError
impl Eq for EmptyStrError
impl StructuralEq for EmptyStrError
impl StructuralPartialEq for EmptyStrError
Auto Trait Implementations
impl RefUnwindSafe for EmptyStrError
impl Send for EmptyStrError
impl Sync for EmptyStrError
impl Unpin for EmptyStrError
impl UnwindSafe for EmptyStrError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more