pub struct Param {
pub specs: Option<DeclSpecsId>,
pub declarator: DeclaratorId,
pub attrs: AttrList,
pub span: Span,
}Expand description
One parameter of a function declarator.
Fields§
§specs: Option<DeclSpecsId>The specifiers, absent in an old-style identifier list where the name stands alone and its type comes from a declaration after the parenthesis.
declarator: DeclaratorIdThe declarator, which is abstract when the parameter has no name.
attrs: AttrListAttributes written on the parameter.
span: SpanThe whole parameter.
Trait Implementations§
impl Copy for Param
impl Eq for Param
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