pub struct Declaration<'tu> {
pub name: String,
pub entity: Entity<'tu>,
pub source: Option<Entity<'tu>>,
}Expand description
A C declaration.
Fields§
§name: StringThe 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§
Source§impl<'tu> Clone for Declaration<'tu>
impl<'tu> Clone for Declaration<'tu>
Source§fn clone(&self) -> Declaration<'tu>
fn clone(&self) -> Declaration<'tu>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tu> Debug for Declaration<'tu>
impl<'tu> Debug for Declaration<'tu>
Source§impl<'tu> PartialEq for Declaration<'tu>
impl<'tu> PartialEq for Declaration<'tu>
impl<'tu> Eq for Declaration<'tu>
impl<'tu> StructuralPartialEq for Declaration<'tu>
Auto Trait Implementations§
impl<'tu> Freeze for Declaration<'tu>
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§
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