pub enum FromStrError {
MultipleCodepoints,
Empty,
}
Expand description
Reasons why Utf8Char::from_str()
or Utf16Char::from_str()
failed.
Variants§
MultipleCodepoints
Utf8Char
or Utf16Char
cannot store more than a single codepoint.
Empty
Utf8Char
or Utf16Char
cannot be empty.
Trait Implementations§
Source§impl Clone for FromStrError
impl Clone for FromStrError
Source§fn clone(&self) -> FromStrError
fn clone(&self) -> FromStrError
Returns a copy 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 FromStrError
impl Debug for FromStrError
Source§impl Display for FromStrError
impl Display for FromStrError
Source§impl Error for FromStrError
impl Error for FromStrError
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl PartialEq for FromStrError
impl PartialEq for FromStrError
impl Copy for FromStrError
impl Eq for FromStrError
impl StructuralPartialEq for FromStrError
Auto Trait Implementations§
impl Freeze for FromStrError
impl RefUnwindSafe for FromStrError
impl Send for FromStrError
impl Sync for FromStrError
impl Unpin for FromStrError
impl UnwindSafe for FromStrError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)