pub struct IdentityHandler {
pub commonmark: bool,
}
Expand description
Handler that completely copies tag to printer as HTML with all descendants
Fields§
§commonmark: bool
Commonmark spec
Implementations§
Trait Implementations§
Source§impl Default for IdentityHandler
impl Default for IdentityHandler
Source§fn default() -> IdentityHandler
fn default() -> IdentityHandler
Returns the “default value” for a type. Read more
Source§impl TagHandler for IdentityHandler
impl TagHandler for IdentityHandler
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
fn skip_descendants(&self) -> bool
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
Auto Trait Implementations§
impl Freeze for IdentityHandler
impl RefUnwindSafe for IdentityHandler
impl Send for IdentityHandler
impl Sync for IdentityHandler
impl Unpin for IdentityHandler
impl UnwindSafe for IdentityHandler
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