Struct rustc_mir_transform::coverage::spans::from_mir::SpanFromMir
source · struct SpanFromMir {
span: Span,
visible_macro: Option<Symbol>,
bcb: BasicCoverageBlock,
is_closure: bool,
}Fields§
§span: SpanA span that has been extracted from MIR and then “un-expanded” back to
within the current function’s body_span. After various intermediate
processing steps, this span is emitted as part of the final coverage
mappings.
With the exception of fn_sig_span, this should always be contained
within body_span.
visible_macro: Option<Symbol>§bcb: BasicCoverageBlock§is_closure: boolImplementations§
source§impl SpanFromMir
impl SpanFromMir
fn for_fn_sig(fn_sig_span: Span) -> Self
fn new( span: Span, visible_macro: Option<Symbol>, bcb: BasicCoverageBlock, is_closure: bool ) -> Self
fn into_coverage_span(self) -> CoverageSpan
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SpanFromMir
impl Send for SpanFromMir
impl Sync for SpanFromMir
impl Unpin for SpanFromMir
impl UnwindSafe for SpanFromMir
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: 20 bytes