pub enum TryFromStrError {
Empty,
MultipleChars,
}Expand description
Try from str error can occur when trying to convert a str to a crate::Char.
Variants§
Trait Implementations§
Source§impl Clone for TryFromStrError
impl Clone for TryFromStrError
Source§fn clone(&self) -> TryFromStrError
fn clone(&self) -> TryFromStrError
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 TryFromStrError
impl Debug for TryFromStrError
Source§impl Display for TryFromStrError
impl Display for TryFromStrError
Source§impl Error for TryFromStrError
Available on crate feature std only.
impl Error for TryFromStrError
Available on crate feature
std only.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()
Source§impl From<TryFromStrError> for TryFromBytesError
impl From<TryFromStrError> for TryFromBytesError
Source§fn from(value: TryFromStrError) -> Self
fn from(value: TryFromStrError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TryFromStrError
impl PartialEq for TryFromStrError
impl Copy for TryFromStrError
impl Eq for TryFromStrError
impl StructuralPartialEq for TryFromStrError
Auto Trait Implementations§
impl Freeze for TryFromStrError
impl RefUnwindSafe for TryFromStrError
impl Send for TryFromStrError
impl Sync for TryFromStrError
impl Unpin for TryFromStrError
impl UnwindSafe for TryFromStrError
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