[−][src]Struct lol_html::ElementContentHandlers
Specifies element content handlers associated with a selector.
Methods
impl<'h> ElementContentHandlers<'h>
[src]
pub fn element(
self,
handler: impl FnMut(&mut Element) -> Result<(), Box<dyn Error>> + 'h
) -> Self
[src]
self,
handler: impl FnMut(&mut Element) -> Result<(), Box<dyn Error>> + 'h
) -> Self
Sets a handler for elements matched by a selector.
pub fn comments(
self,
handler: impl FnMut(&mut Comment) -> Result<(), Box<dyn Error>> + 'h
) -> Self
[src]
self,
handler: impl FnMut(&mut Comment) -> Result<(), Box<dyn Error>> + 'h
) -> Self
Sets a handler for HTML comments in the inner content of elements matched by a selector.
pub fn text(
self,
handler: impl FnMut(&mut TextChunk) -> Result<(), Box<dyn Error>> + 'h
) -> Self
[src]
self,
handler: impl FnMut(&mut TextChunk) -> Result<(), Box<dyn Error>> + 'h
) -> Self
Sets a handler for text chunks in the inner content of elements matched by a selector.
Trait Implementations
impl<'h> Default for ElementContentHandlers<'h>
[src]
fn default() -> ElementContentHandlers<'h>
[src]
Auto Trait Implementations
impl<'h> !RefUnwindSafe for ElementContentHandlers<'h>
impl<'h> !Send for ElementContentHandlers<'h>
impl<'h> !Sync for ElementContentHandlers<'h>
impl<'h> Unpin for ElementContentHandlers<'h>
impl<'h> !UnwindSafe for ElementContentHandlers<'h>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,