pub enum AtomParseError<'a> {
InvalidCoordinate(Cow<'a, str>, Error),
NoSymbol,
InvalidNumberOfCoordinates(usize),
}
Expand description
An error that can occur when parsing an Atom
Variants§
Implementations§
Source§impl<'a> AtomParseError<'a>
impl<'a> AtomParseError<'a>
pub fn into_owned(self) -> AtomParseError<'static>
Trait Implementations§
Source§impl<'a> Clone for AtomParseError<'a>
impl<'a> Clone for AtomParseError<'a>
Source§fn clone(&self) -> AtomParseError<'a>
fn clone(&self) -> AtomParseError<'a>
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<'a> Debug for AtomParseError<'a>
impl<'a> Debug for AtomParseError<'a>
Source§impl<'a> Display for AtomParseError<'a>
impl<'a> Display for AtomParseError<'a>
Source§impl Error for AtomParseError<'static>
impl Error for AtomParseError<'static>
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()
Auto Trait Implementations§
impl<'a> Freeze for AtomParseError<'a>
impl<'a> RefUnwindSafe for AtomParseError<'a>
impl<'a> Send for AtomParseError<'a>
impl<'a> Sync for AtomParseError<'a>
impl<'a> Unpin for AtomParseError<'a>
impl<'a> UnwindSafe for AtomParseError<'a>
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