pub struct ConceptMatcher { /* private fields */ }Expand description
Efficient multi-pattern matcher for auto-linkable page names.
Implementations§
Source§impl ConceptMatcher
impl ConceptMatcher
pub fn new(pages: &HashSet<PageId>) -> Self
Sourcepub fn find_bare_mentions(
&self,
source: &str,
classified_ranges: &[ClassifiedRange],
self_page: &PageId,
) -> Vec<BareMention>
pub fn find_bare_mentions( &self, source: &str, classified_ranges: &[ClassifiedRange], self_page: &PageId, ) -> Vec<BareMention>
Find all bare mentions in a page’s prose ranges.
Auto Trait Implementations§
impl Freeze for ConceptMatcher
impl RefUnwindSafe for ConceptMatcher
impl Send for ConceptMatcher
impl Sync for ConceptMatcher
impl Unpin for ConceptMatcher
impl UnsafeUnpin for ConceptMatcher
impl UnwindSafe for ConceptMatcher
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