[][src]Struct clang::sonar::Declaration

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> Debug for Declaration<'tu>[src]

impl<'tu> Eq for Declaration<'tu>[src]

impl<'tu> PartialEq<Declaration<'tu>> for Declaration<'tu>[src]

impl<'tu> StructuralEq for Declaration<'tu>[src]

impl<'tu> StructuralPartialEq for Declaration<'tu>[src]

Auto Trait Implementations

impl<'tu> RefUnwindSafe for Declaration<'tu>

impl<'tu> !Send for Declaration<'tu>

impl<'tu> !Sync for Declaration<'tu>

impl<'tu> Unpin for Declaration<'tu>

impl<'tu> UnwindSafe for Declaration<'tu>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.