pub struct PreprocFile {
pub direct_includes: HashSet<String>,
pub indirect_includes: HashSet<String>,
pub macros: HashSet<String>,
}
Expand description
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§
Source§impl PreprocFile
impl PreprocFile
Sourcepub fn new_macros(macros: &[&str]) -> Self
pub fn new_macros(macros: &[&str]) -> Self
Adds new macros to the set of macro of a file.
Trait Implementations§
Source§impl Debug for PreprocFile
impl Debug for PreprocFile
Source§impl Default for PreprocFile
impl Default for PreprocFile
Source§fn default() -> PreprocFile
fn default() -> PreprocFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PreprocFile
impl<'de> Deserialize<'de> for PreprocFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PreprocFile
impl RefUnwindSafe for PreprocFile
impl Send for PreprocFile
impl Sync for PreprocFile
impl Unpin for PreprocFile
impl UnwindSafe for PreprocFile
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