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]) -> PreprocFile
pub fn new_macros(macros: &[&str]) -> PreprocFile
Builds a new PreprocFile whose macro set contains the given
macro names (and no includes).
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<PreprocFile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PreprocFile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PreprocFile
impl Serialize for PreprocFile
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 UnsafeUnpin 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