[][src]Struct rust_code_analysis::PreprocFile

pub struct PreprocFile {
    pub direct_includes: HashSet<String>,
    pub indirect_includes: HashSet<String>,
    pub macros: HashSet<String>,
}

Preprocessor data of a C/C++ file.

Fields

direct_includes: HashSet<String>

The set of include directives explicitly written in a file

indirect_includes: HashSet<String>

The set of include directives implicitly imported in a file from other files

macros: HashSet<String>

The set of macros of a file

Implementations

impl PreprocFile[src]

pub fn new_macros(macros: &[&str]) -> Self[src]

Adds new macros to the set of macro of a file.

Trait Implementations

impl Debug for PreprocFile[src]

impl Default for PreprocFile[src]

impl<'de> Deserialize<'de> for PreprocFile[src]

impl Serialize for PreprocFile[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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.