Trait cranelift_codegen::machinst::pretty_print::ShowWithRRU [−][src]
A trait for printing instruction bits and pieces, with the the ability to take a contextualising RealRegUniverse that is used to give proper names to registers.
Required methods
fn show_rru(&self, mb_rru: Option<&RealRegUniverse>) -> String
[src]
Return a string that shows the implementing object in context of the
given RealRegUniverse
, if provided.
Provided methods
fn show_rru_sized(&self, mb_rru: Option<&RealRegUniverse>, _size: u8) -> String
[src]
The same as |show_rru|, but with an optional hint giving a size in bytes. Its interpretation is object-dependent, and it is intended to pass around enough information to facilitate printing sub-parts of real registers correctly. Objects may ignore size hints that are irrelevant to them.
Implementations on Foreign Types
impl ShowWithRRU for Reg
[src]
fn show_rru(&self, mb_rru: Option<&RealRegUniverse>) -> String
[src]
fn show_rru_sized(&self, _mb_rru: Option<&RealRegUniverse>, _size: u8) -> String
[src]
impl<R: ShowWithRRU + Copy + Ord + Hash + Eq + Debug> ShowWithRRU for Writable<R>
[src]
fn show_rru(&self, mb_rru: Option<&RealRegUniverse>) -> String
[src]
fn show_rru_sized(&self, mb_rru: Option<&RealRegUniverse>, size: u8) -> String
[src]
Implementors
impl<I: VCodeInst> ShowWithRRU for VCode<I>
[src]
Pretty-printing with RealRegUniverse
context.