swc_html_codegen

Trait Emit

source
pub trait Emit<T>
where T: Spanned,
{ // Required method fn emit(&mut self, node: &T) -> Result; }
Expand description

§Type parameters

§T

The type of the ast node.

Required Methods§

source

fn emit(&mut self, node: &T) -> Result

Implementors§

source§

impl<T, E> Emit<Option<T>> for E
where E: Emit<T>, T: Spanned,

source§

impl<T, E> Emit<&T> for E
where E: Emit<T>, T: Spanned,

source§

impl<T, E> Emit<Box<T>> for E
where E: Emit<T>, T: Spanned,

source§

impl<W> Emit<Attribute> for CodeGenerator<'_, W>
where W: HtmlWriter,

source§

impl<W> Emit<Child> for CodeGenerator<'_, W>
where W: HtmlWriter,

source§

impl<W> Emit<Comment> for CodeGenerator<'_, W>
where W: HtmlWriter,

source§

impl<W> Emit<Document> for CodeGenerator<'_, W>
where W: HtmlWriter,

source§

impl<W> Emit<DocumentFragment> for CodeGenerator<'_, W>
where W: HtmlWriter,

source§

impl<W> Emit<DocumentType> for CodeGenerator<'_, W>
where W: HtmlWriter,

source§

impl<W> Emit<Element> for CodeGenerator<'_, W>
where W: HtmlWriter,

source§

impl<W> Emit<Text> for CodeGenerator<'_, W>
where W: HtmlWriter,