pub struct FnParam {
pub ident: Token,
pub type_annotation: Option<TypeAnnotation>,
pub is_rest: bool,
}Expand description
Represents a function parameter in the AST.
Each parameter has an identifier, an optional type annotation, and a flag indicating
whether it is a rest parameter (e.g., ...args).
Fields§
§ident: TokenThe token representing the parameter identifier.
type_annotation: Option<TypeAnnotation>The type annotation of the parameter.
is_rest: boolIndicates whether the parameter is a rest parameter.
Implementations§
Trait Implementations§
impl StructuralPartialEq for FnParam
Auto Trait Implementations§
impl Freeze for FnParam
impl RefUnwindSafe for FnParam
impl Send for FnParam
impl Sync for FnParam
impl Unpin for FnParam
impl UnwindSafe for FnParam
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