pub enum DetectedEncoding {
AsciiCompatible,
Utf8Bom,
Utf16LeLike,
Utf16LeBom,
Utf16BeLike,
Utf16BeBom,
}Expand description
Possible scenarios for start-of-xml detection of encoding
See the documentation of detect_encoding
Variants§
AsciiCompatible
Matches UTF-8 or some other ascii-compatible encoding
Utf8Bom
We saw a UTF-8 BOM
Utf16LeLike
Matches UTF-16-LE or some other UTF-16 compatible encoding (e.g. ISO-10646-UCS-2)
Utf16LeBom
We saw a UTF-16 BOM in little-endian orientation
Utf16BeLike
Matches UTF-16-BE or some other UTF-16 compatible encoding (e.g. ISO-10646-UCS-2)
Utf16BeBom
We saw a UTF-16 BOM in big-endian orientation
Implementations§
Auto Trait Implementations§
impl Freeze for DetectedEncoding
impl RefUnwindSafe for DetectedEncoding
impl Send for DetectedEncoding
impl Sync for DetectedEncoding
impl Unpin for DetectedEncoding
impl UnsafeUnpin for DetectedEncoding
impl UnwindSafe for DetectedEncoding
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