pub struct UnknownName { /* private fields */ }Expand description
The error of FromStr on the crate’s enums: the string is not one of the spec’s names.
use trackparse::{ArtistRole, UnknownName};
let err: UnknownName = "singer".parse::<ArtistRole>().unwrap_err();
assert_eq!(err.to_string(), "unknown ArtistRole name: \"singer\"");Implementations§
Trait Implementations§
Source§impl Clone for UnknownName
impl Clone for UnknownName
Source§impl Debug for UnknownName
impl Debug for UnknownName
Source§impl Display for UnknownName
impl Display for UnknownName
impl Eq for UnknownName
Source§impl Error for UnknownName
impl Error for UnknownName
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 Hash for UnknownName
impl Hash for UnknownName
Source§impl PartialEq for UnknownName
impl PartialEq for UnknownName
impl StructuralPartialEq for UnknownName
Auto Trait Implementations§
impl Forget for UnknownName
impl Freeze for UnknownName
impl Move for UnknownName
impl RefUnwindSafe for UnknownName
impl Send for UnknownName
impl Sync for UnknownName
impl Unpin for UnknownName
impl UnsafeUnpin for UnknownName
impl UnwindSafe for UnknownName
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