#[non_exhaustive]pub enum EncodingType {
WIN1250,
WIN1251,
WIN1252,
}Expand description
The text encoding used to interpret byte strings in plugin data.
OpenMW supports exactly three Windows code-page encodings; any other value in an
encoding= line is rejected with ConfigError::BadEncoding.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WIN1250
Windows code page 1250 — Central European (Polish, Czech, Slovak, …).
WIN1251
Windows code page 1251 — Cyrillic (Russian, Ukrainian, …).
WIN1252
Windows code page 1252 — Western European (English, French, German, …). The default.
Trait Implementations§
Source§impl Clone for EncodingType
impl Clone for EncodingType
Source§fn clone(&self) -> EncodingType
fn clone(&self) -> EncodingType
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 EncodingType
impl Debug for EncodingType
Source§impl Display for EncodingType
impl Display for EncodingType
Source§impl PartialEq for EncodingType
impl PartialEq for EncodingType
impl Copy for EncodingType
impl Eq for EncodingType
impl StructuralPartialEq for EncodingType
Auto Trait Implementations§
impl Freeze for EncodingType
impl RefUnwindSafe for EncodingType
impl Send for EncodingType
impl Sync for EncodingType
impl Unpin for EncodingType
impl UnsafeUnpin for EncodingType
impl UnwindSafe for EncodingType
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