Skip to main content

Parsed

Struct Parsed 

Source
pub struct Parsed {
    pub document: Document,
    pub encoding: &'static Encoding,
    pub confidence: Confidence,
}
Expand description

A document parsed from bytes, and how its encoding was decided.

Fields§

§document: Document§encoding: &'static Encoding

The encoding the document was decoded with: what JavaScript’s document.characterSet would say.

§confidence: Confidence

Auto Trait Implementations§

§

impl !Freeze for Parsed

§

impl Forget for Parsed

§

impl Move for Parsed

§

impl RefUnwindSafe for Parsed
where OnceLock<Lines>: RefUnwindSafe,

§

impl Send for Parsed
where RawVecInner: Send, BoxRaw<Positions>: Send, RawTable<(u32, u32)>: Send, RawTable<(u32, Vec<u32>)>: Send, &'static str: Send, OnceLock<Lines>: Send, &'static Encoding: Send,

§

impl Sync for Parsed
where RawVecInner: Sync, BoxRaw<Positions>: Sync, RawTable<(u32, u32)>: Sync, RawTable<(u32, Vec<u32>)>: Sync, OnceLock<Lines>: Sync,

§

impl Unpin for Parsed
where *const u8 is !null: Unpin, Box<Positions>: Unpin, &'static str: Unpin, Align4<u32>: Unpin, &'static Encoding: Unpin,

§

impl UnsafeUnpin for Parsed

§

impl UnwindSafe for Parsed
where RawVecInner: UnwindSafe, BoxRaw<Positions>: UnwindSafe, HashMap<u32, u32>: UnwindSafe, HashMap<u32, Vec<u32>>: UnwindSafe, &'static str: UnwindSafe, OnceLock<Lines>: UnwindSafe, &'static Encoding: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.