Struct html2md::images::ImgHandler
source · pub struct ImgHandler { /* private fields */ }Expand description
Handler for <img> tag. Depending on circumstances can produce both
inline HTML-formatted image and Markdown native one
Trait Implementations§
source§impl Default for ImgHandler
impl Default for ImgHandler
source§fn default() -> ImgHandler
fn default() -> ImgHandler
Returns the “default value” for a type. Read more
source§impl TagHandler for ImgHandler
impl TagHandler for ImgHandler
source§fn handle(&mut self, tag: &Handle, printer: &mut StructuredPrinter)
fn handle(&mut self, tag: &Handle, printer: &mut StructuredPrinter)
Handle tag encountered when walking HTML tree.
This is executed before the children processing
source§fn after_handle(&mut self, printer: &mut StructuredPrinter)
fn after_handle(&mut self, printer: &mut StructuredPrinter)
Executed after all children of this tag have been processed
fn skip_descendants(&self) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for ImgHandler
impl Send for ImgHandler
impl Sync for ImgHandler
impl Unpin for ImgHandler
impl UnwindSafe for ImgHandler
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