pub struct DuplicateKeyOccurrence {
pub source: SourceId,
pub source_name: Option<String>,
pub document_index: usize,
pub entry_index: usize,
pub key_source: Option<SourceSpan>,
}Expand description
One duplicate citation key occurrence.
Fields§
§source: SourceIdCorpus-wide source id.
source_name: Option<String>Source name or path, when available.
document_index: usizeDocument index inside the corpus.
entry_index: usizeEntry index inside that parsed document.
key_source: Option<SourceSpan>Key token location, when available.
Trait Implementations§
Source§impl Clone for DuplicateKeyOccurrence
impl Clone for DuplicateKeyOccurrence
Source§fn clone(&self) -> DuplicateKeyOccurrence
fn clone(&self) -> DuplicateKeyOccurrence
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 Debug for DuplicateKeyOccurrence
impl Debug for DuplicateKeyOccurrence
Source§impl PartialEq for DuplicateKeyOccurrence
impl PartialEq for DuplicateKeyOccurrence
Source§fn eq(&self, other: &DuplicateKeyOccurrence) -> bool
fn eq(&self, other: &DuplicateKeyOccurrence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DuplicateKeyOccurrence
impl StructuralPartialEq for DuplicateKeyOccurrence
Auto Trait Implementations§
impl Freeze for DuplicateKeyOccurrence
impl RefUnwindSafe for DuplicateKeyOccurrence
impl Send for DuplicateKeyOccurrence
impl Sync for DuplicateKeyOccurrence
impl Unpin for DuplicateKeyOccurrence
impl UnsafeUnpin for DuplicateKeyOccurrence
impl UnwindSafe for DuplicateKeyOccurrence
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