#[non_exhaustive]pub enum IdentifierErrorKind {
InvalidSyntax,
UnknownBook,
InvalidChapter,
InvalidVerse,
RangeNotAscending,
}Expand description
Stable classification for a machine-identifier parse failure.
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.
InvalidSyntax
The input does not have one of the supported exact shapes.
UnknownBook
The case-sensitive book code is not supported.
InvalidChapter
A chapter is outside the inclusive 1..=999 sanity range.
InvalidVerse
A verse is outside the inclusive 1..=999 sanity range.
RangeNotAscending
A range is equal or descending in canonical book order.
Implementations§
Trait Implementations§
Source§impl Clone for IdentifierErrorKind
impl Clone for IdentifierErrorKind
Source§fn clone(&self) -> IdentifierErrorKind
fn clone(&self) -> IdentifierErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentifierErrorKind
Source§impl Debug for IdentifierErrorKind
impl Debug for IdentifierErrorKind
impl Eq for IdentifierErrorKind
Source§impl Hash for IdentifierErrorKind
impl Hash for IdentifierErrorKind
Source§impl PartialEq for IdentifierErrorKind
impl PartialEq for IdentifierErrorKind
impl StructuralPartialEq for IdentifierErrorKind
Auto Trait Implementations§
impl Freeze for IdentifierErrorKind
impl RefUnwindSafe for IdentifierErrorKind
impl Send for IdentifierErrorKind
impl Sync for IdentifierErrorKind
impl Unpin for IdentifierErrorKind
impl UnsafeUnpin for IdentifierErrorKind
impl UnwindSafe for IdentifierErrorKind
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.