pub struct AstPrinter<'a, W>where
W: Write,{ /* private fields */ }
Implementations§
Source§impl<'a, W> AstPrinter<'a, W>where
W: Write,
impl<'a, W> AstPrinter<'a, W>where
W: Write,
pub fn new(indent: usize, w: W) -> Self
pub fn with_comment_map(self, map: &'a CommentMap) -> Self
pub fn render_value(&mut self, v: &Value) -> Result<()>
pub fn render_expr(&mut self, expr: &Expression) -> Result<()>
pub fn render_stmt( &mut self, stmt: &Statement, prefix_newline: bool, ) -> Result<()>
pub fn render(&mut self, stmts: &Vec<Statement>) -> Result<()>
Auto Trait Implementations§
impl<'a, W> Freeze for AstPrinter<'a, W>where
W: Freeze,
impl<'a, W> RefUnwindSafe for AstPrinter<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for AstPrinter<'a, W>where
W: Send,
impl<'a, W> Sync for AstPrinter<'a, W>where
W: Sync,
impl<'a, W> Unpin for AstPrinter<'a, W>where
W: Unpin,
impl<'a, W> UnwindSafe for AstPrinter<'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