Struct word_dictionary::Dictionary
source · [−]pub struct Dictionary { /* private fields */ }
Implementations
sourceimpl 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.
sourceimpl Dictionary
impl Dictionary
sourceimpl 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.
sourceimpl Dictionary
impl Dictionary
sourceimpl 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 RefUnwindSafe for Dictionary
impl Send for Dictionary
impl Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more