pub struct EngineOptions {
pub segmentation: SegmentationStrategy,
pub initial_sound_law: bool,
pub numeral_strategy: NumeralStrategy,
}Expand description
Engine-level options that affect hanja conversion before rendering.
These options apply to fallback text that is not covered by the supplied dictionary. Dictionary matches are assumed to already contain the desired reading and are not rewritten by fallback orthography rules.
Fields§
§segmentation: SegmentationStrategyHow hanja-containing spans are split into dictionary and fallback segments.
initial_sound_law: boolWhether fallback readings should apply South Korean initial sound law.
numeral_strategy: NumeralStrategyHow fallback hanja numerals are rendered.
Trait Implementations§
Source§impl Clone for EngineOptions
impl Clone for EngineOptions
Source§fn clone(&self) -> EngineOptions
fn clone(&self) -> EngineOptions
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 EngineOptions
impl Debug for EngineOptions
Source§impl Default for EngineOptions
impl Default for EngineOptions
Source§impl PartialEq for EngineOptions
impl PartialEq for EngineOptions
Source§fn eq(&self, other: &EngineOptions) -> bool
fn eq(&self, other: &EngineOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EngineOptions
impl Eq for EngineOptions
impl StructuralPartialEq for EngineOptions
Auto Trait Implementations§
impl Freeze for EngineOptions
impl RefUnwindSafe for EngineOptions
impl Send for EngineOptions
impl Sync for EngineOptions
impl Unpin for EngineOptions
impl UnsafeUnpin for EngineOptions
impl UnwindSafe for EngineOptions
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