Struct rustc_mir_transform::coverage::spans::CoverageSpans
source · pub(super) struct CoverageSpans {
bcb_to_spans: IndexVec<BasicCoverageBlock, Vec<Span>>,
}
Fields§
§bcb_to_spans: IndexVec<BasicCoverageBlock, Vec<Span>>
Map from BCBs to their list of coverage spans.
Implementations§
source§impl CoverageSpans
impl CoverageSpans
pub(super) fn generate_coverage_spans( mir_body: &Body<'_>, fn_sig_span: Span, body_span: Span, basic_coverage_blocks: &CoverageGraph ) -> Self
pub(super) fn bcb_has_coverage_spans(&self, bcb: BasicCoverageBlock) -> bool
pub(super) fn bcbs_with_coverage_spans( &self ) -> impl Iterator<Item = (BasicCoverageBlock, &[Span])>
Auto Trait Implementations§
impl RefUnwindSafe for CoverageSpans
impl !Send for CoverageSpans
impl !Sync for CoverageSpans
impl Unpin for CoverageSpans
impl UnwindSafe for CoverageSpans
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes