pub struct Declarator {
pub kind: Node<DeclaratorKind>,
pub derived: Vec<Node<DerivedDeclarator>>,
pub extensions: Vec<Node<Extension>>,
}
Expand description
Single item in a declaration
Represents both normal and abstract declarators.
(C11 6.7.6, 6.7.7)
Fields§
§kind: Node<DeclaratorKind>
What is being declared
derived: Vec<Node<DerivedDeclarator>>
Contains pointer, array and function declarator elements
extensions: Vec<Node<Extension>>
Vendor-specific extensions
Trait Implementations§
Source§impl Clone for Declarator
impl Clone for Declarator
Source§fn clone(&self) -> Declarator
fn clone(&self) -> Declarator
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 Declarator
impl Debug for Declarator
Source§impl PartialEq for Declarator
impl PartialEq for Declarator
impl StructuralPartialEq for Declarator
Auto Trait Implementations§
impl Freeze for Declarator
impl RefUnwindSafe for Declarator
impl Send for Declarator
impl Sync for Declarator
impl Unpin for Declarator
impl UnwindSafe for Declarator
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