pub struct Param {
pub name: String,
pub ty: Option<TypeAst>,
}Expand description
a parameter of a function, a type, or a diagnostic
Fields§
§name: Stringthe name
ty: Option<TypeAst>the type, when annotated
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Param
impl !Send for Param
impl !Sync for Param
impl !UnwindSafe for Param
impl Freeze for Param
impl Unpin for Param
impl UnsafeUnpin 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