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
sourceimpl Clone for MirSpanview
impl Clone for MirSpanview
sourcefn clone(&self) -> MirSpanview
fn clone(&self) -> MirSpanview
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MirSpanview
impl Debug for MirSpanview
sourceimpl Hash for MirSpanview
impl Hash for MirSpanview
sourceimpl PartialEq<MirSpanview> for MirSpanview
impl PartialEq<MirSpanview> for MirSpanview
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. 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: 1 byte
Size for each variant:
Statement
: 0 bytesTerminator
: 0 bytesBlock
: 0 bytes