pub struct CodeGenerator<'a, W>where
W: HtmlWriter,{ /* private fields */ }
Implementations§
Source§impl<'a, W> CodeGenerator<'a, W>where
W: HtmlWriter,
impl<'a, W> CodeGenerator<'a, W>where
W: HtmlWriter,
pub fn new(wr: W, config: CodegenConfig<'a>) -> Self
Trait Implementations§
Source§impl<'a, W> Debug for CodeGenerator<'a, W>where
W: HtmlWriter + Debug,
impl<'a, W> Debug for CodeGenerator<'a, W>where
W: HtmlWriter + Debug,
Source§impl<W> Emit<Attribute> for CodeGenerator<'_, W>where
W: HtmlWriter,
impl<W> Emit<Attribute> for CodeGenerator<'_, W>where
W: HtmlWriter,
Source§impl<W> Emit<Child> for CodeGenerator<'_, W>where
W: HtmlWriter,
impl<W> Emit<Child> for CodeGenerator<'_, W>where
W: HtmlWriter,
Source§impl<W> Emit<Comment> for CodeGenerator<'_, W>where
W: HtmlWriter,
impl<W> Emit<Comment> for CodeGenerator<'_, W>where
W: HtmlWriter,
Source§impl<W> Emit<Document> for CodeGenerator<'_, W>where
W: HtmlWriter,
impl<W> Emit<Document> for CodeGenerator<'_, W>where
W: HtmlWriter,
Source§impl<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
Source§impl<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
Source§impl<W> Emit<Element> for CodeGenerator<'_, W>where
W: HtmlWriter,
impl<W> Emit<Element> for CodeGenerator<'_, W>where
W: HtmlWriter,
Auto Trait Implementations§
impl<'a, W> Freeze for CodeGenerator<'a, W>where
W: Freeze,
impl<'a, W> RefUnwindSafe for CodeGenerator<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for CodeGenerator<'a, W>where
W: Send,
impl<'a, W> Sync for CodeGenerator<'a, W>where
W: Sync,
impl<'a, W> Unpin for CodeGenerator<'a, W>where
W: Unpin,
impl<'a, W> UnwindSafe for CodeGenerator<'a, W>where
W: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more