pub struct MirParam {
pub local: LocalId,
pub name: String,
pub ty: String,
}Expand description
One formal parameter. The LocalId is assigned at lowering
time and is the binding the function body refers to.
Fields§
§local: LocalIdLocal binding introduced for this parameter. The function
body refers to it via MirExpr::Local(LocalId).
name: StringSource-level parameter name. For dumps + diagnostics only.
ty: StringSource-level type annotation. Same caveat as MirFn::return_type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MirParam
impl RefUnwindSafe for MirParam
impl Send for MirParam
impl Sync for MirParam
impl Unpin for MirParam
impl UnsafeUnpin for MirParam
impl UnwindSafe for MirParam
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