pub struct HtmlEmitter { /* private fields */ }Expand description
Static HTML emitter driven by walker enter/leave events. Tables are
rendered up-front on enter Table (rows/cells aren’t Node variants)
and in_table_depth suppresses walker events on cell content.
Implementations§
Source§impl HtmlEmitter
impl HtmlEmitter
pub fn new() -> Self
pub fn new_with_options(options: RenderOptions) -> Self
pub fn into_string(self) -> String
Sourcepub fn into_parts(self) -> (String, DiagnosticEngine<Code>)
pub fn into_parts(self) -> (String, DiagnosticEngine<Code>)
Returned DiagnosticEngine is per-emitter; merge into a shared
engine via outer.extend(diag).
Sourcepub fn render(doc: &Document) -> (String, DiagnosticEngine<Code>)
pub fn render(doc: &Document) -> (String, DiagnosticEngine<Code>)
Drive the walker; use when no other sink shares the walk.
pub fn render_with( doc: &Document, options: RenderOptions, ) -> (String, DiagnosticEngine<Code>)
Trait Implementations§
Source§impl Default for HtmlEmitter
impl Default for HtmlEmitter
Auto Trait Implementations§
impl Freeze for HtmlEmitter
impl RefUnwindSafe for HtmlEmitter
impl Send for HtmlEmitter
impl Sync for HtmlEmitter
impl Unpin for HtmlEmitter
impl UnsafeUnpin for HtmlEmitter
impl UnwindSafe for HtmlEmitter
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