pub enum Bom {
None,
Utf8,
Utf16Native,
Utf16Swapped,
Utf32Native,
Utf32Swapped,
}Expand description
Byte order mark at the head of a raw byte stream.
Variants§
None
No BOM; the stream is treated as UTF-8.
Utf8
EF BB BF.
Utf16Native
FEFF in native byte order.
Utf16Swapped
FEFF byte-swapped.
Utf32Native
0000FEFF in native byte order.
Utf32Swapped
0000FEFF byte-swapped.
Trait Implementations§
impl Copy for Bom
impl Eq for Bom
impl StructuralPartialEq for Bom
Auto Trait Implementations§
impl Freeze for Bom
impl RefUnwindSafe for Bom
impl Send for Bom
impl Sync for Bom
impl Unpin for Bom
impl UnsafeUnpin for Bom
impl UnwindSafe for Bom
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