pub struct FunctionNames {
local_idents: Vec<String>,
}Expand description
Stable synthesized identifiers for locals in one MIR function.
Fields§
§local_idents: Vec<String>Implementations§
Source§impl FunctionNames
impl FunctionNames
Sourcepub fn from_function(function: &MirFunction) -> FunctionNames
pub fn from_function(function: &MirFunction) -> FunctionNames
Build stable local identifiers for a MIR function.
Sourcepub fn local_ident(&self, local_id: MirLocalId) -> &str
pub fn local_ident(&self, local_id: MirLocalId) -> &str
Return the emitted identifier for a MIR local id.
Sourcepub fn incoming_param_ident(&self, local_id: MirLocalId, index: usize) -> String
pub fn incoming_param_ident(&self, local_id: MirLocalId, index: usize) -> String
Build an identifier for an incoming block parameter binding.
Trait Implementations§
Source§impl Clone for FunctionNames
impl Clone for FunctionNames
Source§fn clone(&self) -> FunctionNames
fn clone(&self) -> FunctionNames
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 FunctionNames
impl RefUnwindSafe for FunctionNames
impl Send for FunctionNames
impl Sync for FunctionNames
impl Unpin for FunctionNames
impl UnwindSafe for FunctionNames
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