Struct llvm_cov_json::Expansion
source · pub struct Expansion<'a> {
pub filenames: Vec<&'a str>,
pub branches: Vec<Branch>,
pub source_region: Region,
pub target_regions: Vec<Region>,
}Expand description
Metrics of an expansion, i.e., a expanded macro or include statement.
Fields§
§filenames: Vec<&'a str>Vector that is references via index by the branches, source_region and target_regions attrbiute in order to refer to a specific file.
branches: Vec<Branch>All branches in this expansion.
source_region: RegionThe source and destination of the expansion (i.e., macro/include statement).
Indexing the filenames array with the source_region.file_id returns the
path of the file in which the macro/include was used. The source_region.line_*
and source_region.column_* attrbiutes refer to the code location where in macro was used.
The source_region.expanded_file_id can be used as index for the filenames array to
get the file path where the expanded macro or included file is located.
target_regions: Vec<Region>Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Expansion<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Expansion<'a>
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
source§impl<'a> PartialEq for Expansion<'a>
impl<'a> PartialEq for Expansion<'a>
impl<'a> StructuralPartialEq for Expansion<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Expansion<'a>
impl<'a> Send for Expansion<'a>
impl<'a> Sync for Expansion<'a>
impl<'a> Unpin for Expansion<'a>
impl<'a> UnwindSafe for Expansion<'a>
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