pub struct MMSeg { /* private fields */ }
Implementations
sourceimpl MMSeg
impl MMSeg
pub fn new() -> Self
pub fn load_dict<R: BufRead>(
&mut self,
chars_dict: &mut R,
words_dict: &mut R
) -> Result<()>
pub fn load_dict_file<P: AsRef<Path>>(
&mut self,
chars_dict: P,
words_dict: P
) -> Result<()>
pub fn cut_simple(&self, text: &str) -> Vec<String>
pub fn cut(&self, text: &str) -> Vec<String>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MMSeg
impl Send for MMSeg
impl Sync for MMSeg
impl Unpin for MMSeg
impl UnwindSafe for MMSeg
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