Enum rustc_mir_build::build::BlockFrame [−][src]
enum BlockFrame {
Statement {
ignores_expr_result: bool,
},
TailExpr {
tail_result_is_ignored: bool,
span: Span,
},
SubExpr,
}
Variants
Evaluation is currently within a statement.
Examples include:
EXPR;
let _ = EXPR;
let x = EXPR;
Fields of Statement
ignores_expr_result: bool
If true, then statement discards result from evaluating the expression (such as examples 1 and 2 above).
Evaluation is currently within the tail expression of a block.
Example: { STMT_1; STMT_2; EXPR }
Fields of TailExpr
Generic mark meaning that the block occurred as a subexpression where the result might be used.
Examples: foo(EXPR)
, match EXPR { ... }
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BlockFrame
impl !Send for BlockFrame
impl !Sync for BlockFrame
impl Unpin for BlockFrame
impl UnwindSafe for BlockFrame
Blanket Implementations
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: 12 bytes
Size for each variant:
Statement
: 1 byteTailExpr
: 11 bytesSubExpr
: 0 bytes