pub struct Visualizer {
function_first_instruction: HashMap<String, String>,
block_first_instruction: HashMap<(String, BlockId), String>,
}
Fields§
§function_first_instruction: HashMap<String, String>
First instruction in the function.
block_first_instruction: HashMap<(String, BlockId), String>
First instruction in the block.
Implementations§
Source§impl Visualizer
impl Visualizer
fn get_function_first_instruction(&self, name: &str) -> String
fn get_block_first_instruction(&self, name: &str, bid: BlockId) -> String
fn translate_instruction_node( &self, name: &str, bid: BlockId, iid: usize, ) -> String
fn translate_block_exit_node(&self, name: &str, bid: BlockId) -> String
fn translate_callee( &mut self, name: &str, callee: &Operand, ) -> Result<String, ()>
fn translate_function( &mut self, name: &str, signature: &FunctionSignature, definition: &FunctionDefinition, ) -> Result<String, ()>
fn translate_block( &mut self, name: &str, bid: &BlockId, block: &Block, ) -> Result<String, ()>
Trait Implementations§
Source§impl Debug for Visualizer
impl Debug for Visualizer
Source§impl Default for Visualizer
impl Default for Visualizer
Source§fn default() -> Visualizer
fn default() -> Visualizer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Visualizer
impl RefUnwindSafe for Visualizer
impl Send for Visualizer
impl Sync for Visualizer
impl Unpin for Visualizer
impl UnwindSafe for Visualizer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more