#[non_exhaustive]pub enum Encoding {
Utf8,
Default,
Latin1,
Ascii,
Utf16Be,
Utf16Le,
Utf16,
Unknown,
}
Expand description
Character encoding used for parsing
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
Explicitly UTF-8 only
Default
UTF-8 fallback, but can be any 8-bit encoding
Latin1
ISO-8859-1
Ascii
US-ASCII
Utf16Be
Big-Endian
Utf16Le
Little-Endian
Utf16
Unknown endianness yet, will be sniffed
Unknown
Not determined yet, may be sniffed to be anything
Trait Implementations§
source§impl PartialEq<Encoding> for Encoding
impl PartialEq<Encoding> for Encoding
impl Copy for Encoding
impl Eq for Encoding
impl StructuralEq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin 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