pub struct ParsedCorpus<'a> { /* private fields */ }Expand description
Parsed multi-source bibliography corpus.
Implementations§
Source§impl<'a> ParsedCorpus<'a>
impl<'a> ParsedCorpus<'a>
Sourcepub fn documents(&self) -> &[ParsedDocument<'a>]
pub fn documents(&self) -> &[ParsedDocument<'a>]
Return parsed documents in corpus input order.
Sourcepub fn sources(&self) -> &[ParsedSource<'a>]
pub fn sources(&self) -> &[ParsedSource<'a>]
Return corpus sources in input order.
Sourcepub fn source(&self, id: SourceId) -> Option<&ParsedSource<'a>>
pub fn source(&self, id: SourceId) -> Option<&ParsedSource<'a>>
Return a source by corpus-wide source id.
Sourcepub fn entries(&self) -> impl Iterator<Item = &ParsedEntry<'a>> + '_
pub fn entries(&self) -> impl Iterator<Item = &ParsedEntry<'a>> + '_
Iterate entries across all documents in corpus order.
Sourcepub fn diagnostics(&self) -> impl Iterator<Item = &Diagnostic> + '_
pub fn diagnostics(&self) -> impl Iterator<Item = &Diagnostic> + '_
Iterate diagnostics across all documents in corpus order.
Sourcepub fn duplicate_keys(&self) -> &[DuplicateKeyGroup]
pub fn duplicate_keys(&self) -> &[DuplicateKeyGroup]
Return duplicate citation key groups.
Sourcepub const fn status(&self) -> ParseStatus
pub const fn status(&self) -> ParseStatus
Return aggregate corpus parse status.
Trait Implementations§
Source§impl<'a> Clone for ParsedCorpus<'a>
impl<'a> Clone for ParsedCorpus<'a>
Source§fn clone(&self) -> ParsedCorpus<'a>
fn clone(&self) -> ParsedCorpus<'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 moreAuto Trait Implementations§
impl<'a> Freeze for ParsedCorpus<'a>
impl<'a> RefUnwindSafe for ParsedCorpus<'a>
impl<'a> Send for ParsedCorpus<'a>
impl<'a> Sync for ParsedCorpus<'a>
impl<'a> Unpin for ParsedCorpus<'a>
impl<'a> UnsafeUnpin for ParsedCorpus<'a>
impl<'a> UnwindSafe for ParsedCorpus<'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