pub enum Confidence {
Tentative,
Certain,
}Expand description
How sure the parser is of an encoding, in the HTML Standard’s terms.
Variants§
Tentative
A guess: from the prescan, the UTF-8 autodetection or the
fallback. A <meta> the parser
meets can still change it.
Certain
From a byte order mark, the transport layer, or a <meta> that
agreed with the guess or replaced it.
Trait Implementations§
Source§impl Clone for Confidence
impl Clone for Confidence
Source§fn clone(&self) -> Confidence
fn clone(&self) -> Confidence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Confidence
Source§impl Debug for Confidence
impl Debug for Confidence
impl Eq for Confidence
Source§impl PartialEq for Confidence
impl PartialEq for Confidence
impl StructuralPartialEq for Confidence
Auto Trait Implementations§
impl Forget for Confidence
impl Freeze for Confidence
impl Move for Confidence
impl RefUnwindSafe for Confidence
impl Send for Confidence
impl Sync for Confidence
impl Unpin for Confidence
impl UnsafeUnpin for Confidence
impl UnwindSafe for Confidence
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