pub struct HtmlProvider;Trait Implementations§
Source§impl Clone for HtmlProvider
impl Clone for HtmlProvider
impl Copy for HtmlProvider
Source§impl Debug for HtmlProvider
impl Debug for HtmlProvider
Source§impl Default for HtmlProvider
impl Default for HtmlProvider
Source§impl HtmlParserProvider for HtmlProvider
impl HtmlParserProvider for HtmlProvider
fn parse_inner_html<'m2, 'doc2>( &self, mutr: &'m2 mut DocumentMutator<'doc2>, element_id: NodeId, html: &str, )
Source§fn parse_fragment<'m2, 'doc2>(
&self,
mutr: &'m2 mut DocumentMutator<'doc2>,
element_id: NodeId,
html: &str,
allow_declarative_shadow_roots: bool,
)
fn parse_fragment<'m2, 'doc2>( &self, mutr: &'m2 mut DocumentMutator<'doc2>, element_id: NodeId, html: &str, allow_declarative_shadow_roots: bool, )
Parse a fragment.
allow_declarative_shadow_roots is set for
setHTMLUnsafe and clear for innerHTML. Read moreSource§fn parse_document(
&self,
html: &str,
config: DocumentConfig,
) -> Box<dyn Document>
fn parse_document( &self, html: &str, config: DocumentConfig, ) -> Box<dyn Document>
Parse a full HTML document (e.g. the contents of an
<iframe>). Read moreAuto Trait Implementations§
impl Freeze for HtmlProvider
impl RefUnwindSafe for HtmlProvider
impl Send for HtmlProvider
impl Sync for HtmlProvider
impl Unpin for HtmlProvider
impl UnsafeUnpin for HtmlProvider
impl UnwindSafe for HtmlProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert