pub enum ExternalDeclaration {
Declaration(Node<Declaration>),
StaticAssert(Node<StaticAssert>),
FunctionDefinition(Node<FunctionDefinition>),
}
Expand description
Top-level elements of a C program
(C11 6.9)
Variants§
Declaration(Node<Declaration>)
StaticAssert(Node<StaticAssert>)
FunctionDefinition(Node<FunctionDefinition>)
Trait Implementations§
Source§impl Clone for ExternalDeclaration
impl Clone for ExternalDeclaration
Source§fn clone(&self) -> ExternalDeclaration
fn clone(&self) -> ExternalDeclaration
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 ExternalDeclaration
impl Debug for ExternalDeclaration
Source§impl PartialEq for ExternalDeclaration
impl PartialEq for ExternalDeclaration
impl StructuralPartialEq for ExternalDeclaration
Auto Trait Implementations§
impl Freeze for ExternalDeclaration
impl RefUnwindSafe for ExternalDeclaration
impl Send for ExternalDeclaration
impl Sync for ExternalDeclaration
impl Unpin for ExternalDeclaration
impl UnwindSafe for ExternalDeclaration
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