pub enum Charset {
Utf8,
Utf16Le,
Utf16Be,
Utf32Le,
Utf32Be,
Gbk,
ShiftJis,
Iso88591,
Windows1252,
Big5,
Euckr,
Unknown,
}Expand description
Character encoding types supported by the subtitle processing system.
This enum covers the most common text encodings encountered in subtitle files across different languages and regions.
Variants§
Utf8
UTF-8 encoding (Unicode)
Utf16Le
UTF-16 Little Endian encoding
Utf16Be
UTF-16 Big Endian encoding
Utf32Le
UTF-32 Little Endian encoding
Utf32Be
UTF-32 Big Endian encoding
Gbk
GBK encoding (Chinese Simplified)
ShiftJis
Shift JIS encoding (Japanese)
Iso88591
ISO 8859-1 encoding (Latin-1)
Windows1252
Windows-1252 encoding (Western European)
Big5
Big5 encoding (Chinese Traditional)
Euckr
EUC-KR encoding (Korean)
Unknown
Unknown or undetectable encoding
Trait Implementations§
impl Eq for Charset
impl StructuralPartialEq for Charset
Auto Trait Implementations§
impl Freeze for Charset
impl RefUnwindSafe for Charset
impl Send for Charset
impl Sync for Charset
impl Unpin for Charset
impl UnwindSafe for Charset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.