#[non_exhaustive]pub struct TransliterationConfig {
pub enable_transliteration: bool,
/* private fields */
}Expand description
Configures transliteration feature on top of translation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_transliteration: boolIf true, source text in romanized form can be translated to the target language.
Implementations§
Source§impl TransliterationConfig
impl TransliterationConfig
pub fn new() -> Self
Sourcepub fn set_enable_transliteration<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_transliteration<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_transliteration.
§Example
ⓘ
let x = TransliterationConfig::new().set_enable_transliteration(true);Trait Implementations§
Source§impl Clone for TransliterationConfig
impl Clone for TransliterationConfig
Source§fn clone(&self) -> TransliterationConfig
fn clone(&self) -> TransliterationConfig
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 TransliterationConfig
impl Debug for TransliterationConfig
Source§impl Default for TransliterationConfig
impl Default for TransliterationConfig
Source§fn default() -> TransliterationConfig
fn default() -> TransliterationConfig
Returns the “default value” for a type. Read more
Source§impl Message for TransliterationConfig
impl Message for TransliterationConfig
Source§impl PartialEq for TransliterationConfig
impl PartialEq for TransliterationConfig
impl StructuralPartialEq for TransliterationConfig
Auto Trait Implementations§
impl Freeze for TransliterationConfig
impl RefUnwindSafe for TransliterationConfig
impl Send for TransliterationConfig
impl Sync for TransliterationConfig
impl Unpin for TransliterationConfig
impl UnsafeUnpin for TransliterationConfig
impl UnwindSafe for TransliterationConfig
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