pub struct Param {
pub name: Ident,
pub ty: TypeExpr,
pub default: Option<Expr>,
pub is_variadic: bool,
pub span: Span,
}Fields§
§name: Ident§ty: TypeExpr§default: Option<Expr>Optional default value expression (e.g., fn f(x: f64 = 1.0)).
is_variadic: boolVariadic parameter: fn f(...args: f64) collects remaining args into an array.
Only the last parameter may be variadic.
span: SpanTrait Implementations§
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