#[non_exhaustive]pub enum ArticleIdError {
ExpectedBeginningLiteral,
ExpectedNumberVv,
InvalidMonth,
InvalidYear,
InvalidId,
}Expand description
An error that can occur when parsing and validating arXiv identifiers
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ExpectedBeginningLiteral
Expected the identifier to start with the string literal “arXiv”
ExpectedNumberVv
Expected to find a numbervV component
InvalidMonth
An invalid month outside of the inclusive [1, 12] interval
InvalidYear
An invalid year outside of the inclusive [2007, 2099] interval
InvalidId
An invalid identifier outside of the inclusive [1, 99999] interval
Trait Implementations§
Source§impl Clone for ArticleIdError
impl Clone for ArticleIdError
Source§fn clone(&self) -> ArticleIdError
fn clone(&self) -> ArticleIdError
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 ArticleIdError
impl Debug for ArticleIdError
Source§impl Display for ArticleIdError
impl Display for ArticleIdError
Source§impl Error for ArticleIdError
impl Error for ArticleIdError
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 PartialEq for ArticleIdError
impl PartialEq for ArticleIdError
impl Copy for ArticleIdError
impl Eq for ArticleIdError
impl StructuralPartialEq for ArticleIdError
Auto Trait Implementations§
impl Freeze for ArticleIdError
impl RefUnwindSafe for ArticleIdError
impl Send for ArticleIdError
impl Sync for ArticleIdError
impl Unpin for ArticleIdError
impl UnwindSafe for ArticleIdError
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