pub struct Param<'ast> {
pub attributes: &'ast [AttributeGroup<'ast>],
pub modifiers: &'ast [Token],
pub name: &'ast Token,
pub ty: Option<&'ast Type<'ast>>,
pub default: Option<ExprId<'ast>>,
pub by_ref: bool,
pub variadic: bool,
pub hooks: Option<&'ast [PropertyHook<'ast>]>,
pub span: Span,
}Fields§
§attributes: &'ast [AttributeGroup<'ast>]§modifiers: &'ast [Token]§name: &'ast Token§ty: Option<&'ast Type<'ast>>§default: Option<ExprId<'ast>>§by_ref: bool§variadic: bool§hooks: Option<&'ast [PropertyHook<'ast>]>§span: SpanTrait Implementations§
impl<'ast> Copy for Param<'ast>
Auto Trait Implementations§
impl<'ast> Freeze for Param<'ast>
impl<'ast> RefUnwindSafe for Param<'ast>
impl<'ast> Send for Param<'ast>
impl<'ast> Sync for Param<'ast>
impl<'ast> Unpin for Param<'ast>
impl<'ast> UnwindSafe for Param<'ast>
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