Enum biblatex::ParseErrorKind
source · #[non_exhaustive]pub enum ParseErrorKind {
UnexpectedEof,
Unexpected(Token),
Expected(Token),
UnknownAbbreviation(String),
MalformedCommand,
DuplicateKey(String),
ResolutionError(TypeErrorKind),
}
Expand description
Error conditions that might occur during initial parsing of the bibliography.
Also see ParseError
.
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.
UnexpectedEof
The file ended prematurely.
Unexpected(Token)
An unexpected token was encountered.
Expected(Token)
A token was expected, but not found.
UnknownAbbreviation(String)
A field contained an abbreviation that was not defined.
MalformedCommand
A TeX command was malformed.
DuplicateKey(String)
A duplicate citation key was found.
ResolutionError(TypeErrorKind)
A type error occurred while trying to resolve cross-references.
Trait Implementations§
source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
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 Debug for ParseErrorKind
impl Debug for ParseErrorKind
source§impl Display for ParseErrorKind
impl Display for ParseErrorKind
source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
source§fn eq(&self, other: &ParseErrorKind) -> bool
fn eq(&self, other: &ParseErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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