Struct swc_html_codegen::CodeGenerator
source · [−]pub struct CodeGenerator<W> where
W: HtmlWriter, { /* private fields */ }
Implementations
sourceimpl<W> CodeGenerator<W> where
W: HtmlWriter,
impl<W> CodeGenerator<W> where
W: HtmlWriter,
pub fn new(wr: W, config: CodegenConfig) -> Self
Trait Implementations
sourceimpl<W: Debug> Debug for CodeGenerator<W> where
W: HtmlWriter,
impl<W: Debug> Debug for CodeGenerator<W> where
W: HtmlWriter,
sourceimpl<W> Emit<Attribute> for CodeGenerator<W> where
W: HtmlWriter,
impl<W> Emit<Attribute> for CodeGenerator<W> where
W: HtmlWriter,
sourceimpl<W> Emit<Child> for CodeGenerator<W> where
W: HtmlWriter,
impl<W> Emit<Child> for CodeGenerator<W> where
W: HtmlWriter,
sourceimpl<W> Emit<Comment> for CodeGenerator<W> where
W: HtmlWriter,
impl<W> Emit<Comment> for CodeGenerator<W> where
W: HtmlWriter,
sourceimpl<W> Emit<Document> for CodeGenerator<W> where
W: HtmlWriter,
impl<W> Emit<Document> for CodeGenerator<W> where
W: HtmlWriter,
sourceimpl<W> Emit<DocumentFragment> for CodeGenerator<W> where
W: HtmlWriter,
impl<W> Emit<DocumentFragment> for CodeGenerator<W> where
W: HtmlWriter,
fn emit(&mut self, n: &DocumentFragment) -> Result
sourceimpl<W> Emit<DocumentType> for CodeGenerator<W> where
W: HtmlWriter,
impl<W> Emit<DocumentType> for CodeGenerator<W> where
W: HtmlWriter,
fn emit(&mut self, n: &DocumentType) -> Result
sourceimpl<W> Emit<Element> for CodeGenerator<W> where
W: HtmlWriter,
impl<W> Emit<Element> for CodeGenerator<W> where
W: HtmlWriter,
sourceimpl<W> Emit<Text> for CodeGenerator<W> where
W: HtmlWriter,
impl<W> Emit<Text> for CodeGenerator<W> where
W: HtmlWriter,
sourceimpl<W> Emit<TokenAndSpan> for CodeGenerator<W> where
W: HtmlWriter,
impl<W> Emit<TokenAndSpan> for CodeGenerator<W> where
W: HtmlWriter,
fn emit(&mut self, n: &TokenAndSpan) -> Result
Auto Trait Implementations
impl<W> RefUnwindSafe for CodeGenerator<W> where
W: RefUnwindSafe,
impl<W> Send for CodeGenerator<W> where
W: Send,
impl<W> Sync for CodeGenerator<W> where
W: Sync,
impl<W> Unpin for CodeGenerator<W> where
W: Unpin,
impl<W> UnwindSafe for CodeGenerator<W> where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more