pub enum Encoding {
Show 41 variants
Utf8,
Ascii,
Iso8859_1,
Windows1252,
Iso8859_15,
Macintosh,
Iso8859_2,
Windows1250,
Iso8859_3,
Iso8859_9,
Windows1254,
Iso8859_4,
Iso8859_10,
Iso8859_13,
Windows1257,
Iso8859_14,
Iso8859_16,
Iso8859_5,
Windows1251,
Koi8R,
Koi8U,
Ibm866,
XMacCyrillic,
Iso8859_7,
Windows1253,
Iso8859_8,
Iso8859_8I,
Windows1255,
Iso8859_6,
Windows1256,
Windows1258,
Windows874,
ShiftJis,
EucJp,
Iso2022Jp,
Gbk,
Gb18030,
Big5,
EucKr,
Utf16Be,
Utf16Le,
}Expand description
Input encoding for term data.
Determines how raw bytes are transcoded to/from UTF-8 when
producing or consuming string values (atoms, variables, strings, etc.).
Binary content (bin{...}) always uses raw bytes regardless of encoding.
Encoding names follow the WHATWG Encoding Standard / IANA charset names
(the same names accepted by encoding_rs and HTTP Content-Type headers).
Variants§
Utf8
Ascii
Iso8859_1
Windows1252
Iso8859_15
Macintosh
Iso8859_2
Windows1250
Iso8859_3
Iso8859_9
Windows1254
Iso8859_4
Iso8859_10
Iso8859_13
Windows1257
Iso8859_14
Iso8859_16
Iso8859_5
Windows1251
Koi8R
Koi8U
Ibm866
XMacCyrillic
Iso8859_7
Windows1253
Iso8859_8
Iso8859_8I
Windows1255
Iso8859_6
Windows1256
Windows1258
Windows874
ShiftJis
EucJp
Iso2022Jp
Gbk
Gb18030
Big5
EucKr
Utf16Be
Utf16Le
Implementations§
Source§impl Encoding
impl Encoding
pub const ALL: &'static [Encoding]
pub fn from_name(name: &str) -> Option<Encoding>
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.