pub struct Dictionary { /* private fields */ }Implementations§
Source§impl Dictionary
impl Dictionary
Sourcepub fn new<P: Into<PathBuf>>(path: P) -> Dictionary
pub fn new<P: Into<PathBuf>>(path: P) -> Dictionary
Create a new Dictionary instance. But not read the file data. Use the read_data method to read data file the input file.
Source§impl Dictionary
impl Dictionary
Source§impl Dictionary
impl Dictionary
Sourcepub fn find_left_strictly<S: AsRef<str>>(
&self,
s: S,
start_index: usize,
) -> Option<usize>
pub fn find_left_strictly<S: AsRef<str>>( &self, s: S, start_index: usize, ) -> Option<usize>
Find a word by a keyword.
Sourcepub fn find_left<S: AsRef<str>>(
&self,
s: S,
start_index: usize,
) -> Option<usize>
pub fn find_left<S: AsRef<str>>( &self, s: S, start_index: usize, ) -> Option<usize>
Find a word by a keyword.
Source§impl Dictionary
impl Dictionary
Source§impl Dictionary
impl Dictionary
Sourcepub fn write_data(&mut self) -> Result<(), WriteError>
pub fn write_data(&mut self) -> Result<(), WriteError>
Write this dictionary to its dictionary file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dictionary
impl RefUnwindSafe for Dictionary
impl Send for Dictionary
impl Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
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