pub struct AstWriter { /* private fields */ }Implementations
sourceimpl AstWriter
 
impl AstWriter
pub fn new_line(&mut self)
pub fn write(&mut self, s: impl AsRef<str>)
pub fn writeln(&mut self, s: impl AsRef<str>)
pub fn indent<F: FnOnce(&mut AstWriter)>(&mut self, inc: usize, f: F)
pub fn block<F: FnOnce(&mut AstWriter)>(&mut self, f: F)
pub fn annotate<F: FnOnce(&mut AstWriter), Annot: AstDebug>(
    &mut self, 
    f: F, 
    annot: &Annot
)
pub fn annotate_gen<F: FnOnce(&mut AstWriter), Annot, FAnnot: FnOnce(&mut AstWriter, &Annot)>(
    &mut self, 
    f: F, 
    annot: &Annot, 
    annot_writer: FAnnot
)
pub fn list<T, F: FnMut(&mut AstWriter, T) -> bool>(
    &mut self, 
    items: impl IntoIterator<Item = T>, 
    sep: &str, 
    f: F
)
pub fn comma<T, F: FnMut(&mut AstWriter, T)>(
    &mut self, 
    items: impl IntoIterator<Item = T>, 
    f: F
)
pub fn semicolon<T, F: FnMut(&mut AstWriter, T)>(
    &mut self, 
    items: impl IntoIterator<Item = T>, 
    f: F
)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AstWriter
impl Send for AstWriter
impl Sync for AstWriter
impl Unpin for AstWriter
impl UnwindSafe for AstWriter
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