Enum rustc_mir_build::build::BlockFrame [−][src]
enum BlockFrame {
Statement {
ignores_expr_result: bool,
},
TailExpr {
tail_result_is_ignored: bool,
span: Span,
},
SubExpr,
}Variants
Expand description
Evaluation is currently within a statement.
Examples include:
EXPR;let _ = EXPR;let x = EXPR;
Show fields
Fields of Statement
ignores_expr_result: boolExpand description
If true, then statement discards result from evaluating the expression (such as examples 1 and 2 above).
Expand description
Evaluation is currently within the tail expression of a block.
Example: { STMT_1; STMT_2; EXPR }
Show fields
Expand description
Generic mark meaning that the block occurred as a subexpression where the result might be used.
Examples: foo(EXPR), match EXPR { ... }
Implementations
impl BlockFrame[src]
impl BlockFrame[src]fn is_tail_expr(&self) -> bool[src]
fn is_statement(&self) -> bool[src]
Trait Implementations
impl Debug for BlockFrame[src]
impl Debug for BlockFrame[src]impl PartialEq<BlockFrame> for BlockFrame[src]
impl PartialEq<BlockFrame> for BlockFrame[src]fn eq(&self, other: &BlockFrame) -> bool[src]
fn eq(&self, other: &BlockFrame) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &BlockFrame) -> bool[src]
fn ne(&self, other: &BlockFrame) -> bool[src]This method tests for !=.
impl Eq for BlockFrame[src]
impl StructuralEq for BlockFrame[src]
impl StructuralPartialEq for BlockFrame[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,