pub enum ParseEvent<'a> {
Entry(ParsedEntry<'a>),
String(ParsedString<'a>),
Preamble(ParsedPreamble<'a>),
Comment(ParsedComment<'a>),
Failed(ParsedFailedBlock<'a>),
Diagnostic(Diagnostic),
}Expand description
Source-order event emitted by streaming parsing.
Variants§
Entry(ParsedEntry<'a>)
A regular or recovered bibliography entry.
String(ParsedString<'a>)
A string definition.
Preamble(ParsedPreamble<'a>)
A preamble block.
Comment(ParsedComment<'a>)
A comment block.
Failed(ParsedFailedBlock<'a>)
A malformed block retained by tolerant parsing.
Diagnostic(Diagnostic)
A structured diagnostic associated with a preceding event.
Trait Implementations§
Source§impl<'a> Clone for ParseEvent<'a>
impl<'a> Clone for ParseEvent<'a>
Source§fn clone(&self) -> ParseEvent<'a>
fn clone(&self) -> ParseEvent<'a>
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 moreSource§impl<'a> Debug for ParseEvent<'a>
impl<'a> Debug for ParseEvent<'a>
Source§impl<'a> PartialEq for ParseEvent<'a>
impl<'a> PartialEq for ParseEvent<'a>
Source§fn eq(&self, other: &ParseEvent<'a>) -> bool
fn eq(&self, other: &ParseEvent<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for ParseEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParseEvent<'a>
impl<'a> RefUnwindSafe for ParseEvent<'a>
impl<'a> Send for ParseEvent<'a>
impl<'a> Sync for ParseEvent<'a>
impl<'a> Unpin for ParseEvent<'a>
impl<'a> UnsafeUnpin for ParseEvent<'a>
impl<'a> UnwindSafe for ParseEvent<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more