pub struct Matcher<'a> { /* private fields */ }Expand description
Matcher for determining if references share the same primary contributors.
Uses the style’s substitution configuration to determine which contributor (author, editor, translator) should be used for comparison.
Implementations§
Source§impl<'a> Matcher<'a>
impl<'a> Matcher<'a>
Sourcepub fn new(style: &'a Style, default_config: &'a Config) -> Self
pub fn new(style: &'a Style, default_config: &'a Config) -> Self
Build a matcher from the active style and default configuration.
Sourcepub fn contributors_match(&self, prev: &Reference, current: &Reference) -> bool
pub fn contributors_match(&self, prev: &Reference, current: &Reference) -> bool
Check if primary contributors (authors/editors) match between two references. Uses the style’s substitution logic to determine the primary contributor.
Auto Trait Implementations§
impl<'a> Freeze for Matcher<'a>
impl<'a> RefUnwindSafe for Matcher<'a>
impl<'a> Send for Matcher<'a>
impl<'a> Sync for Matcher<'a>
impl<'a> Unpin for Matcher<'a>
impl<'a> UnsafeUnpin for Matcher<'a>
impl<'a> UnwindSafe for Matcher<'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