pub struct ProgramNames {
function_idents: Vec<String>,
}Expand description
Stable synthesized identifiers for functions in a MIR program.
Fields§
§function_idents: Vec<String>Implementations§
Source§impl ProgramNames
impl ProgramNames
Sourcepub fn from_program(program: &MirProgram) -> Self
pub fn from_program(program: &MirProgram) -> Self
Build a stable set of function identifiers for a MIR program.
Sourcepub fn function_ident(&self, func_id: MirFuncId) -> &str
pub fn function_ident(&self, func_id: MirFuncId) -> &str
Return the emitted identifier for a MIR function id.
Trait Implementations§
Source§impl Clone for ProgramNames
impl Clone for ProgramNames
Source§fn clone(&self) -> ProgramNames
fn clone(&self) -> ProgramNames
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProgramNames
impl RefUnwindSafe for ProgramNames
impl Send for ProgramNames
impl Sync for ProgramNames
impl Unpin for ProgramNames
impl UnwindSafe for ProgramNames
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