Enum encode_unicode::error::FromStrError
source · [−]pub enum FromStrError {
MultipleCodepoints,
Empty,
}
Expand description
Error returned when Utf8Char::from_str()
or Utf16Char::from_str()
fails.
Variants
MultipleCodepoints
Utf8Char
and Utf16Char
cannot store more than a single codepoint.
Empty
Utf8Char
and Utf16Char
cannot be empty.
Trait Implementations
sourceimpl Clone for FromStrError
impl Clone for FromStrError
sourcefn clone(&self) -> FromStrError
fn clone(&self) -> FromStrError
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 FromStrError
impl Debug for FromStrError
sourceimpl Display for FromStrError
impl Display for FromStrError
sourceimpl Error for FromStrError
impl Error for FromStrError
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<FromStrError> for FromStrError
impl PartialEq<FromStrError> for FromStrError
impl Copy for FromStrError
impl Eq for FromStrError
impl StructuralEq for FromStrError
impl StructuralPartialEq for FromStrError
Auto Trait Implementations
impl RefUnwindSafe for FromStrError
impl Send for FromStrError
impl Sync for FromStrError
impl Unpin for FromStrError
impl UnwindSafe for FromStrError
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