Struct twiggy_ir::Code
[−]
[src]
pub struct Code { /* fields omitted */ }
Executable code. Function bodies.
Methods
impl Code
[src]
pub fn new(name: &str) -> Code
[src]
Construct a new IR item for executable code.
pub fn demangled(&self) -> Option<&str>
[src]
Get the demangled name of this function, if any.
pub fn monomorphization_of(&self) -> Option<&str>
[src]
Get the name of the generic function that this is a monomorphization of, if any.
Trait Implementations
impl From<Code> for ItemKind
[src]
impl Clone for Code
[src]
fn clone(&self) -> Code
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Code
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Code
[src]
fn eq(&self, __arg_0: &Code) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Code) -> bool
[src]
This method tests for !=
.