Enum rustc_session::config::MirSpanview
source · pub enum MirSpanview {
Statement,
Terminator,
Block,
}
Expand description
The different settings that the -Z dump_mir_spanview
flag can have. Statement
generates a
document highlighting each span of every statement (including terminators). Terminator
and
Block
highlight a single span per BasicBlock
: the span of the block’s Terminator
, or a
computed span for the block, representing the entire range, covering the block’s terminator and
all of its statements.
Variants§
Statement
Default -Z dump_mir_spanview
or -Z dump_mir_spanview=statement
Terminator
-Z dump_mir_spanview=terminator
Block
-Z dump_mir_spanview=block
Trait Implementations§
source§impl Clone for MirSpanview
impl Clone for MirSpanview
source§fn clone(&self) -> MirSpanview
fn clone(&self) -> MirSpanview
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MirSpanview
impl Debug for MirSpanview
source§impl Hash for MirSpanview
impl Hash for MirSpanview
source§impl PartialEq<MirSpanview> for MirSpanview
impl PartialEq<MirSpanview> for MirSpanview
source§fn eq(&self, other: &MirSpanview) -> bool
fn eq(&self, other: &MirSpanview) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for MirSpanview
impl StructuralPartialEq for MirSpanview
Auto Trait Implementations§
impl RefUnwindSafe for MirSpanview
impl Send for MirSpanview
impl Sync for MirSpanview
impl Unpin for MirSpanview
impl UnwindSafe for MirSpanview
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
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: 1 byte
Size for each variant:
Statement
: 0 bytesTerminator
: 0 bytesBlock
: 0 bytes