#[non_exhaustive]pub enum Encoding {
Utf8,
Utf16Le,
Utf16Be,
UsAscii,
Iso8859_1,
Iso8859_15,
Windows1252,
}Expand description
A character encoding that decode reads.
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.
Utf8
UTF-8, the default.
Utf16Le
UTF-16, little-endian.
Utf16Be
UTF-16, big-endian.
UsAscii
US-ASCII: the bytes below 0x80.
Iso8859_1
ISO-8859-1 (Latin-1): each byte is the character of that code point.
Iso8859_15
ISO-8859-15 (Latin-9): ISO-8859-1 with the euro sign and seven other letters.
Windows1252
windows-1252: ISO-8859-1 with printable characters from 0x80 to 0x9F, five of which (0x81, 0x8D, 0x8F, 0x90, 0x9D) are no character.
Implementations§
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Forget for Encoding
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