#[non_exhaustive]pub enum Label {
Utf8,
Utf16Le,
Utf16Be,
Single(Charset),
Multi(MultiByte),
Replacement,
}Expand description
What a label of the WHATWG Encoding Standard names (label).
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
Utf16Le
UTF-16 little-endian (also the label “utf-16”)
Utf16Be
UTF-16 big-endian
Single(Charset)
a single-byte character set of this crate
Multi(MultiByte)
a multi-byte encoding: Shift_JIS, EUC-JP, ISO-2022-JP, GBK, gb18030, Big5, EUC-KR
Replacement
the standard’s replacement encoding (ISO-2022-KR, HZ and other labels it closes): any input is one U+FFFD
Implementations§
Trait Implementations§
impl Copy for Label
impl Eq for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Forget for Label
impl Freeze for Label
impl Move for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnsafeUnpin for Label
impl UnwindSafe for Label
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