Skip to main content Crate mcut Copy item path Source build_api buildCutOption Cut options passed to crate::Cut . Cutter Automatic mixed-language cutter with zero-copy model/dictionary overrides
and compile-time pluggable crate::LangCut extensions. CutterBuilder Builder for Cutter with custom zero-copy models, UserDict , and LangCut extensions. LangChain Compile-time linked chain of LangCut extensions (zero dyn, zero allocation). Model Zero-copy view over a .mcut model slice. ModelStat Size and section statistics for a loaded Model . NoLang Empty language extension placeholder compiled to zero machine instructions. OwnedModel Owned .mcut model backed by a heap byte buffer. OwnedUserDict Owned .mdict custom dictionary backed by a heap byte buffer. PlcLang Helper binding any .mcut PlcSegmenter to a character predicate for LangCut . PlcSegmenter Pointwise Linear Classification (PLC) segmenter operating in O(1) stack space
with fearless_simd block evaluation, pure-Han fast path, and SWAR SwissTable trie. Token A borrowed token plus its byte range in the original text. UserDict Zero-copy view over a pre-built .mdict custom dictionary slice. CutMode Cross-language cut granularity. Error Crate error. Lang Built-in language identifier encoded in .mcut headers and returned by detect_lang . TokenKind Token category. MCUT globalReady-to-use global mixed-language cutter initialized lazily per language on first use. Cut Unified zero-cost segmentation interface across mixed-language cutters and single-script engines. LangCut Pluggable language segmenter routed automatically inside mixed-language text. LangPack Static-dispatch collection of pluggable LangCut extensions. detect_lang Detects the dominant language of text from its scripts. Result Crate result.