[][src]Struct mmseg::MMSeg

pub struct MMSeg { /* fields omitted */ }

Implementations

impl MMSeg[src]

pub fn new() -> Self[src]

pub fn load_dict<R: BufRead>(
    &mut self,
    chars_dict: &mut R,
    words_dict: &mut R
) -> Result<()>
[src]

pub fn load_dict_file<P: AsRef<Path>>(
    &mut self,
    chars_dict: P,
    words_dict: P
) -> Result<()>
[src]

pub fn cut_simple(&self, text: &str) -> Vec<String>[src]

pub fn cut(&self, text: &str) -> Vec<String>[src]

Trait Implementations

impl Debug for MMSeg[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.