pub struct Param {
pub pattern: Expr,
pub default: Option<Expr>,
pub rest: bool,
}Expand description
A formal parameter.
Fields§
§pattern: ExprThe binding target — an Ident, or an array/object pattern (also an
Expr::Array/Expr::Object used as a destructuring target).
default: Option<Expr>= default.
rest: bool...rest.
Trait Implementations§
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