1 2 3 4 5 6 7 8 9 10 11
// TreeDisplay implementations for instruction types use super::{TreeDisplay, TreeFormatter}; use crate::r#type::instruction::Inst; impl TreeDisplay for Inst { fn tree_display(&self, f: &mut TreeFormatter, _source: &str) -> std::fmt::Result { // Display debug representation of the instruction f.root(&format!("{:?}", self)) } }