Struct clang::sonar::Declaration
source · [−]pub struct Declaration<'tu> {
pub name: String,
pub entity: Entity<'tu>,
pub source: Option<Entity<'tu>>,
}
Expand description
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
sourceimpl<'tu> Clone for Declaration<'tu>
impl<'tu> Clone for Declaration<'tu>
sourcefn clone(&self) -> Declaration<'tu>
fn clone(&self) -> Declaration<'tu>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'tu> Debug for Declaration<'tu>
impl<'tu> Debug for Declaration<'tu>
sourceimpl<'tu> PartialEq<Declaration<'tu>> for Declaration<'tu>
impl<'tu> PartialEq<Declaration<'tu>> for Declaration<'tu>
sourcefn eq(&self, other: &Declaration<'tu>) -> bool
fn eq(&self, other: &Declaration<'tu>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Declaration<'tu>) -> bool
fn ne(&self, other: &Declaration<'tu>) -> bool
This method tests for !=
.
impl<'tu> Eq for Declaration<'tu>
impl<'tu> StructuralEq for Declaration<'tu>
impl<'tu> StructuralPartialEq for Declaration<'tu>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more