pub enum DecodeMode {
Strict,
Auto,
}Expand description
Decoding mode, controlling how the auto-detection heuristic works.
Variants§
Strict
Strict: use exactly the encoding provided, no auto-detection.
Auto
Auto: try UTF-8 first; fall back to the provided single-byte encoding
on the first invalid byte (mirrors espeakCHARS_AUTO).
Trait Implementations§
Source§impl Clone for DecodeMode
impl Clone for DecodeMode
Source§fn clone(&self) -> DecodeMode
fn clone(&self) -> DecodeMode
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 DecodeMode
impl Debug for DecodeMode
Source§impl PartialEq for DecodeMode
impl PartialEq for DecodeMode
impl Copy for DecodeMode
impl Eq for DecodeMode
impl StructuralPartialEq for DecodeMode
Auto Trait Implementations§
impl Freeze for DecodeMode
impl RefUnwindSafe for DecodeMode
impl Send for DecodeMode
impl Sync for DecodeMode
impl Unpin for DecodeMode
impl UnsafeUnpin for DecodeMode
impl UnwindSafe for DecodeMode
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