#[non_exhaustive]pub enum BibParseErrorKind {
ExpectedAt,
ExpectedEntryType,
ExpectedOpenBrace,
ExpectedKey,
ExpectedFieldName,
ExpectedEquals,
ExpectedValue,
DuplicateKey,
ExpectedCommaOrCloseBrace,
UnterminatedEntry,
UnterminatedValue,
}Expand description
What went wrong while parsing BibTeX. Paired with a byte offset inside a
BibParseError.
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.
ExpectedAt
An entry must begin with @.
ExpectedEntryType
@ must be followed by an entry type (e.g. article).
ExpectedOpenBrace
The entry type must be followed by {.
ExpectedKey
{ must be followed by a non-empty citation key.
ExpectedFieldName
A field must begin with a field name.
ExpectedEquals
A field name must be followed by =.
ExpectedValue
= must be followed by a {...}, "...", or bare value.
DuplicateKey
A citation key was declared more than once in the same BibTeX input.
ExpectedCommaOrCloseBrace
A field value must be followed by , or the closing }.
UnterminatedEntry
The entry ended (a } was expected) before the input did.
UnterminatedValue
A {...} or "..." value had no closing delimiter.
Implementations§
Trait Implementations§
Source§impl Clone for BibParseErrorKind
impl Clone for BibParseErrorKind
Source§fn clone(&self) -> BibParseErrorKind
fn clone(&self) -> BibParseErrorKind
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 BibParseErrorKind
impl Debug for BibParseErrorKind
Source§impl PartialEq for BibParseErrorKind
impl PartialEq for BibParseErrorKind
impl Copy for BibParseErrorKind
impl Eq for BibParseErrorKind
impl StructuralPartialEq for BibParseErrorKind
Auto Trait Implementations§
impl Freeze for BibParseErrorKind
impl RefUnwindSafe for BibParseErrorKind
impl Send for BibParseErrorKind
impl Sync for BibParseErrorKind
impl Unpin for BibParseErrorKind
impl UnsafeUnpin for BibParseErrorKind
impl UnwindSafe for BibParseErrorKind
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