pub struct Param {
pub name: String,
pub ty: Type,
pub location: Option<String>,
}Expand description
One typed parameter in a function signature.
location carries the calling-convention slot the value is
passed in — for the 6502 backend this is a register name like
"A" / "X" / "Y". When Some, the parameter renders as
name: ty @LOC. When None, just name: ty.
Fields§
§name: String§ty: Type§location: Option<String>Trait Implementations§
impl Eq for Param
impl StructuralPartialEq for Param
Auto Trait Implementations§
impl Freeze for Param
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnsafeUnpin for Param
impl UnwindSafe for Param
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