Enum rustc_mir_build::build::BlockFrame
source · enum BlockFrame {
Statement {
ignores_expr_result: bool,
},
TailExpr {
tail_result_is_ignored: bool,
span: Span,
},
SubExpr,
}
Variants§
Statement
Fields
Evaluation is currently within a statement.
Examples include:
EXPR;
let _ = EXPR;
let x = EXPR;
TailExpr
Fields
Evaluation is currently within the tail expression of a block.
Example: { STMT_1; STMT_2; EXPR }
SubExpr
Generic mark meaning that the block occurred as a subexpression where the result might be used.
Examples: foo(EXPR)
, match EXPR { ... }
Implementations§
source§impl BlockFrame
impl BlockFrame
fn is_tail_expr(&self) -> bool
fn is_statement(&self) -> bool
Trait Implementations§
source§impl Debug for BlockFrame
impl Debug for BlockFrame
source§impl PartialEq<BlockFrame> for BlockFrame
impl PartialEq<BlockFrame> for BlockFrame
source§fn eq(&self, other: &BlockFrame) -> bool
fn eq(&self, other: &BlockFrame) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BlockFrame
impl StructuralEq for BlockFrame
impl StructuralPartialEq for BlockFrame
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§
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: 12 bytes
Size for each variant:
Statement
: 1 byteTailExpr
: 11 bytesSubExpr
: 0 bytes