[][src]Struct kuchiki::ParseOpts

pub struct ParseOpts {
    pub tokenizer: TokenizerOpts,
    pub tree_builder: TreeBuilderOpts,
    pub on_parse_error: Option<Box<dyn FnMut(Cow<'static, str>)>>,
}

Options for the HTML parser.

Fields

tokenizer: TokenizerOpts

Options for the HTML tokenizer.

tree_builder: TreeBuilderOpts

Options for the HTML tree builder.

on_parse_error: Option<Box<dyn FnMut(Cow<'static, str>)>>

A callback for HTML parse errors (which are never fatal).

Trait Implementations

impl Default for ParseOpts[src]

Auto Trait Implementations

impl !RefUnwindSafe for ParseOpts

impl !Send for ParseOpts

impl !Sync for ParseOpts

impl Unpin for ParseOpts

impl !UnwindSafe for ParseOpts

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.