pub enum DirectDeclarator {
Identifier(String, Range<usize>),
Declarator(Box<Declarator>, Range<usize>),
Array {
direct_declarator: Box<DirectDeclarator>,
type_qualifiers: Vec<TypeQualifier>,
assignment_expression: Option<Box<Expression>>,
span: Range<usize>,
},
Function {
direct_declarator: Box<DirectDeclarator>,
parameter_list: ParameterList,
span: Range<usize>,
},
}Expand description
Direct declarator.
Variants§
Identifier(String, Range<usize>)
Identifier.
Declarator(Box<Declarator>, Range<usize>)
Parenthesized declarator.
Array
Array declarator.
Fields
§
direct_declarator: Box<DirectDeclarator>The declarator being declared as an array.
§
type_qualifiers: Vec<TypeQualifier>Type qualifiers inside [].
§
assignment_expression: Option<Box<Expression>>Optional assignment expression for size.
Function
Function declarator.
Fields
§
direct_declarator: Box<DirectDeclarator>The declarator being declared as a function.
§
parameter_list: ParameterListParameter list.
Implementations§
Trait Implementations§
Source§impl Clone for DirectDeclarator
impl Clone for DirectDeclarator
Source§fn clone(&self) -> DirectDeclarator
fn clone(&self) -> DirectDeclarator
Returns a duplicate 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 DirectDeclarator
impl Debug for DirectDeclarator
Source§impl PartialEq for DirectDeclarator
impl PartialEq for DirectDeclarator
impl StructuralPartialEq for DirectDeclarator
Auto Trait Implementations§
impl Freeze for DirectDeclarator
impl RefUnwindSafe for DirectDeclarator
impl Send for DirectDeclarator
impl Sync for DirectDeclarator
impl Unpin for DirectDeclarator
impl UnwindSafe for DirectDeclarator
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