pub struct PinyinReadingOptions {
pub max_span_chars: usize,
pub max_paths: usize,
pub longest_match_only: bool,
pub max_readings_per_segment: Option<usize>,
}Expand description
Controls Chinese dictionary reading-path expansion.
Fields§
§max_span_chars: usizeMaximum surface span length considered for one dictionary segment.
max_paths: usizeMaximum complete reading paths to keep.
longest_match_only: boolPrefer the longest dictionary span when multiple spans start together.
max_readings_per_segment: Option<usize>Optional cap on readings used per dictionary segment.
Trait Implementations§
Source§impl Clone for PinyinReadingOptions
impl Clone for PinyinReadingOptions
Source§fn clone(&self) -> PinyinReadingOptions
fn clone(&self) -> PinyinReadingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PinyinReadingOptions
impl Debug for PinyinReadingOptions
Source§impl Default for PinyinReadingOptions
impl Default for PinyinReadingOptions
Source§impl PartialEq for PinyinReadingOptions
impl PartialEq for PinyinReadingOptions
Source§fn eq(&self, other: &PinyinReadingOptions) -> bool
fn eq(&self, other: &PinyinReadingOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PinyinReadingOptions
impl Eq for PinyinReadingOptions
impl StructuralPartialEq for PinyinReadingOptions
Auto Trait Implementations§
impl Freeze for PinyinReadingOptions
impl RefUnwindSafe for PinyinReadingOptions
impl Send for PinyinReadingOptions
impl Sync for PinyinReadingOptions
impl Unpin for PinyinReadingOptions
impl UnsafeUnpin for PinyinReadingOptions
impl UnwindSafe for PinyinReadingOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.