pub struct ParamDecl {
pub specifiers: DeclSpecifiers,
pub name: Option<Ident>,
pub ty: Type,
pub range: SourceRange,
}Expand description
One parameter of a function prototype.
Fields§
§specifiers: DeclSpecifiersThe parameter’s declaration specifiers.
name: Option<Ident>The parameter name, absent in an abstract declarator.
ty: TypeThe parameter’s type after applying its declarator.
range: SourceRangeWhere the parameter was written.
Trait Implementations§
impl StructuralPartialEq for ParamDecl
Auto Trait Implementations§
impl Freeze for ParamDecl
impl RefUnwindSafe for ParamDecl
impl Send for ParamDecl
impl Sync for ParamDecl
impl Unpin for ParamDecl
impl UnsafeUnpin for ParamDecl
impl UnwindSafe for ParamDecl
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