pub enum ExternalDecl {
Function(FunctionDef),
Decl(Decl),
StaticAssert(StaticAssert),
}Expand description
A top-level item.
Variants§
Function(FunctionDef)
A function definition.
Decl(Decl)
A declaration.
StaticAssert(StaticAssert)
_Static_assert(…); — C11.
Trait Implementations§
Source§impl Clone for ExternalDecl
impl Clone for ExternalDecl
Source§impl Debug for ExternalDecl
impl Debug for ExternalDecl
Source§impl PartialEq for ExternalDecl
impl PartialEq for ExternalDecl
impl StructuralPartialEq for ExternalDecl
Auto Trait Implementations§
impl Freeze for ExternalDecl
impl RefUnwindSafe for ExternalDecl
impl Send for ExternalDecl
impl Sync for ExternalDecl
impl Unpin for ExternalDecl
impl UnsafeUnpin for ExternalDecl
impl UnwindSafe for ExternalDecl
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