pub struct DictionarySegmenter {
pub config: DictionaryConfig,
}Fields§
§config: DictionaryConfigImplementations§
Source§impl DictionarySegmenter
impl DictionarySegmenter
pub fn new(config: DictionaryConfig) -> Self
pub fn export(&self) -> Vec<DictionaryExport>
pub fn segment( &self, segment: &str, base_start: usize, script: SegmentScript, normalizer: &dyn TextNormalizer, out: &mut Vec<TokenWithScript>, seen: &mut HashSet<(String, usize, usize)>, ) -> bool
Trait Implementations§
Source§impl Clone for DictionarySegmenter
impl Clone for DictionarySegmenter
Source§fn clone(&self) -> DictionarySegmenter
fn clone(&self) -> DictionarySegmenter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DictionarySegmenter
impl Debug for DictionarySegmenter
Source§impl Default for DictionarySegmenter
impl Default for DictionarySegmenter
Source§fn default() -> DictionarySegmenter
fn default() -> DictionarySegmenter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DictionarySegmenter
impl RefUnwindSafe for DictionarySegmenter
impl Send for DictionarySegmenter
impl Sync for DictionarySegmenter
impl Unpin for DictionarySegmenter
impl UnsafeUnpin for DictionarySegmenter
impl UnwindSafe for DictionarySegmenter
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