pub struct ParameterDeclaration {
pub specifiers: Vec<Node<DeclarationSpecifier>>,
pub declarator: Option<Node<Declarator>>,
pub extensions: Vec<Node<Extension>>,
}
Expand description
Complete parameter declaration in a function prototype or declaration
This is so called “new-style” or “C89” parameter declaration that
follows in parenthesis after a function name. “Old-style” or “K&R”
function parameter declarations are collected in the
FunctionDefinition::declarations
field.
(C11 6.7.6.3)
Fields§
§specifiers: Vec<Node<DeclarationSpecifier>>
§declarator: Option<Node<Declarator>>
§extensions: Vec<Node<Extension>>
Trait Implementations§
Source§impl Clone for ParameterDeclaration
impl Clone for ParameterDeclaration
Source§fn clone(&self) -> ParameterDeclaration
fn clone(&self) -> ParameterDeclaration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParameterDeclaration
impl Debug for ParameterDeclaration
Source§impl PartialEq for ParameterDeclaration
impl PartialEq for ParameterDeclaration
impl StructuralPartialEq for ParameterDeclaration
Auto Trait Implementations§
impl Freeze for ParameterDeclaration
impl RefUnwindSafe for ParameterDeclaration
impl Send for ParameterDeclaration
impl Sync for ParameterDeclaration
impl Unpin for ParameterDeclaration
impl UnwindSafe for ParameterDeclaration
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