pub struct NoteSearchIndex { /* private fields */ }Implementations§
Source§impl NoteSearchIndex
impl NoteSearchIndex
pub fn build( relative_path: &str, title: &str, sections: &[Section], wikilinks: &[String], raw_content: &str, ) -> Self
pub fn matches_path(&self, term: &str) -> bool
pub fn matches_title(&self, term: &str) -> bool
pub fn matches_body(&self, term: &str) -> bool
pub fn matches_heading(&self, term: &str) -> bool
pub fn matches_wikilink(&self, term: &str) -> bool
Trait Implementations§
Source§impl Clone for NoteSearchIndex
impl Clone for NoteSearchIndex
Source§fn clone(&self) -> NoteSearchIndex
fn clone(&self) -> NoteSearchIndex
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 NoteSearchIndex
impl Debug for NoteSearchIndex
Source§impl Default for NoteSearchIndex
impl Default for NoteSearchIndex
Source§fn default() -> NoteSearchIndex
fn default() -> NoteSearchIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoteSearchIndex
impl RefUnwindSafe for NoteSearchIndex
impl Send for NoteSearchIndex
impl Sync for NoteSearchIndex
impl Unpin for NoteSearchIndex
impl UnsafeUnpin for NoteSearchIndex
impl UnwindSafe for NoteSearchIndex
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