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]
impl<'tu> Clone for Declaration<'tu>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'tu> Debug for Declaration<'tu>
[src]
impl<'tu> Debug for Declaration<'tu>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'tu> PartialEq for Declaration<'tu>
[src]
impl<'tu> PartialEq for Declaration<'tu>
fn eq(&self, other: &Declaration<'tu>) -> bool
[src]
fn eq(&self, other: &Declaration<'tu>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Declaration<'tu>) -> bool
[src]
fn ne(&self, other: &Declaration<'tu>) -> bool
This method tests for !=
.
impl<'tu> Eq for Declaration<'tu>
[src]
impl<'tu> Eq for Declaration<'tu>
Auto Trait Implementations
impl<'tu> !Send for Declaration<'tu>
impl<'tu> !Send for Declaration<'tu>
impl<'tu> !Sync for Declaration<'tu>
impl<'tu> !Sync for Declaration<'tu>