pub struct CodeGenerator<'a, W>where
W: XmlWriter,{ /* private fields */ }Implementations§
Source§impl<'a, W> CodeGenerator<'a, W>where
W: XmlWriter,
impl<'a, W> CodeGenerator<'a, W>where
W: XmlWriter,
pub fn new(wr: W, config: CodegenConfig<'a>) -> Self
Trait Implementations§
Source§impl<'a, W> Debug for CodeGenerator<'a, W>
impl<'a, W> Debug for CodeGenerator<'a, W>
Source§impl<W> Emit<CdataSection> for CodeGenerator<'_, W>where
W: XmlWriter,
impl<W> Emit<CdataSection> for CodeGenerator<'_, W>where
W: XmlWriter,
fn emit(&mut self, n: &CdataSection) -> Result
Source§impl<W> Emit<DocumentType> for CodeGenerator<'_, W>where
W: XmlWriter,
impl<W> Emit<DocumentType> for CodeGenerator<'_, W>where
W: XmlWriter,
fn emit(&mut self, n: &DocumentType) -> Result
Source§impl<W> Emit<ProcessingInstruction> for CodeGenerator<'_, W>where
W: XmlWriter,
impl<W> Emit<ProcessingInstruction> for CodeGenerator<'_, W>where
W: XmlWriter,
fn emit(&mut self, n: &ProcessingInstruction) -> Result
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