pub struct Formatter<'a, 'b> { /* private fields */ }
Implementations§
source§impl<'a, 'b> Formatter<'a, 'b>
impl<'a, 'b> Formatter<'a, 'b>
pub fn new( buf: &'a mut String, args: &'a mut Vec<(usize, &'b dyn ToTokens)>, ) -> Self
pub fn write_ident(&mut self, i: &DashIdent) -> Result
pub fn write_doctype(&mut self, _: &Doctype) -> Result
pub fn write_expr(&mut self, e: &'b Expr) -> Result
pub fn write_value(&mut self, v: &'b Value) -> Result
pub fn write_attr(&mut self, a: &'b Attr) -> Result
pub fn write_tag(&mut self, t: &'b Tag) -> Result
pub fn write_node(&mut self, n: &'b Node) -> Result
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for Formatter<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for Formatter<'a, 'b>
impl<'a, 'b> !Send for Formatter<'a, 'b>
impl<'a, 'b> !Sync for Formatter<'a, 'b>
impl<'a, 'b> Unpin for Formatter<'a, 'b>
impl<'a, 'b> !UnwindSafe for Formatter<'a, 'b>
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