pub enum DeclaratorKind {
Abstract,
Identifier(Node<Identifier>),
Declarator(Box<Node<Declarator>>),
}
Expand description
Name of a declarator
(C11 6.7.6, 6.7.7)
Variants§
Abstract
Unnamed declarator
E.g. part of a function prototype without parameter names.
Identifier(Node<Identifier>)
Named declarator
E.g. a variable or a named function parameter.
Declarator(Box<Node<Declarator>>)
Nested declarator
Any group of parenthesis inside a declarator. E.g. pointer to a function.
Trait Implementations§
Source§impl Clone for DeclaratorKind
impl Clone for DeclaratorKind
Source§fn clone(&self) -> DeclaratorKind
fn clone(&self) -> DeclaratorKind
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 DeclaratorKind
impl Debug for DeclaratorKind
Source§impl PartialEq for DeclaratorKind
impl PartialEq for DeclaratorKind
impl StructuralPartialEq for DeclaratorKind
Auto Trait Implementations§
impl Freeze for DeclaratorKind
impl RefUnwindSafe for DeclaratorKind
impl Send for DeclaratorKind
impl Sync for DeclaratorKind
impl Unpin for DeclaratorKind
impl UnwindSafe for DeclaratorKind
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