pub fn write_function(w: &mut dyn Write, func: &Function) -> Result
Expand description

Write func to w as equivalent text. Use isa to emit ISA-dependent annotations.

Examples found in repository?
src/ir/function.rs (line 527)
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
    fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
        write_function(fmt, self.0)
    }
}

impl fmt::Display for Function {
    fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
        write_function(fmt, self)
    }
}

impl fmt::Debug for Function {
    fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
        write_function(fmt, self)
    }