Struct clang::sonar::Declaration
[−]
[src]
pub struct Declaration<'tu> { pub name: String, pub entity: Entity<'tu>, pub source: Option<Entity<'tu>>, }
A C declaration.
Fields
name: String
The name of the declaration.
entity: Entity<'tu>
The entity that describes the declaration (e.g., contains the fields of a struct).
source: Option<Entity<'tu>>
The entity the declaration originated from if it differs from entity
.
Trait Implementations
impl<'tu> Clone for Declaration<'tu>
[src]
fn clone(&self) -> Declaration<'tu>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'tu> Debug for Declaration<'tu>
[src]
impl<'tu> PartialEq for Declaration<'tu>
[src]
fn eq(&self, __arg_0: &Declaration<'tu>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Declaration<'tu>) -> bool
This method tests for !=
.