pub struct Printer<'writer, W: Write> { /* private fields */ }Implementations§
Source§impl<'writer, W: Write> Printer<'writer, W>
impl<'writer, W: Write> Printer<'writer, W>
pub fn new(writer: &'writer mut W, indent: usize) -> Self
pub fn print_imported_function_alias( &mut self, imported_function_alias: &ImportedFunctionAlias<'_>, ) -> Result
pub fn print_imported_function( &mut self, imported_function: &ImportedFunction<'_>, ) -> Result
pub fn print_import(&mut self, import: &Import<'_>) -> Result
pub fn print_type(&mut self, ty: &Type) -> Result
pub fn print_type_annotation( &mut self, type_annotation: &TypeAnnotation, ) -> Result
pub fn print_label(&mut self, label: &Label<'_>) -> Result
pub fn print_constant_value(&mut self, constant_value: &ConstantValue) -> Result
pub fn print_constant(&mut self, constant: &Constant<'_>) -> Result
pub fn print_value_operation_op( &mut self, value_operation_op: &ValueOperationOp<'_>, ) -> Result
pub fn print_value_operation( &mut self, value_operation: &ValueOperation<'_>, ) -> Result
pub fn print_effect_operation_op( &mut self, effect_operation_op: &EffectOperationOp<'_>, ) -> Result
pub fn print_effect_operation( &mut self, effect_operation: &EffectOperation<'_>, ) -> Result
pub fn print_instruction(&mut self, instruction: &Instruction<'_>) -> Result
pub fn print_function_code(&mut self, code: &FunctionCode<'_>) -> Result
pub fn print_function(&mut self, function: &Function<'_>) -> Result
pub fn print_comment(&mut self, comment: &str) -> Result
pub fn print_newline(&mut self) -> Result
pub fn print_top_level_item(&mut self, item: &TopLevelItem<'_>) -> Result
pub fn print_program(&mut self, program: &Program<'_>) -> Result
Auto Trait Implementations§
impl<'writer, W> Freeze for Printer<'writer, W>
impl<'writer, W> RefUnwindSafe for Printer<'writer, W>where
W: RefUnwindSafe,
impl<'writer, W> Send for Printer<'writer, W>where
W: Send,
impl<'writer, W> Sync for Printer<'writer, W>where
W: Sync,
impl<'writer, W> Unpin for Printer<'writer, W>
impl<'writer, W> !UnwindSafe for Printer<'writer, W>
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