Struct air_beautifier::Beautifier
source · pub struct Beautifier<W: Write> { /* private fields */ }
Expand description
AIR beautifier.
Implementations§
source§impl<W: Write> Beautifier<W>
impl<W: Write> Beautifier<W>
sourcepub fn new_with_indent(output: W, indent_step: usize) -> Self
pub fn new_with_indent(output: W, indent_step: usize) -> Self
Beautifier for the output with custom indentation step.
sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Unwrap the Beautifier into the underlying writer.
sourcepub fn beautify(&mut self, air_script: &str) -> Result<(), BeautifyError>
pub fn beautify(&mut self, air_script: &str) -> Result<(), BeautifyError>
Emit beautified code for the air_script
.
sourcepub fn beautify_ast<'i>(
&mut self,
ast: impl AsRef<Instruction<'i>>
) -> Result<(), BeautifyError>
pub fn beautify_ast<'i>( &mut self, ast: impl AsRef<Instruction<'i>> ) -> Result<(), BeautifyError>
Emit beautified code for the ast
.