#[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§
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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)