pub struct Config {
pub free_tone_marking: bool,
pub std_tone_style: bool,
pub auto_correct: bool,
}Expand description
Configuration options for the Bamboo engine.
Fields§
§free_tone_marking: boolIf true, allows typing tone marks at any position in the word (Free Tone Marking). Default: true.
std_tone_style: boolIf true, uses the standard (new) tone placement (e.g., “hòa”, “khỏe”). If false, uses the old style (e.g., “hoà”, “khoẻ”). Default: true.
auto_correct: boolIf true, enables automatic spelling correction to ensure valid Vietnamese syllables. Default: true.
Implementations§
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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