[−][src]Enum rustc_mir_build::build::BlockFrame
Variants
Evaluation is currently within a statement.
Examples include:
EXPR;let _ = EXPR;let x = EXPR;
Fields of Statement
ignores_expr_result: boolIf 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
impl BlockFrame[src]
pub(in build) fn is_tail_expr(
&self
) -> bool[src]
&self
) -> bool
pub(in build) fn is_statement(
&self
) -> bool[src]
&self
) -> bool
Trait Implementations
impl Debug for BlockFrame[src]
impl Eq for BlockFrame[src]
impl PartialEq<BlockFrame> for BlockFrame[src]
pub fn eq(&self, other: &BlockFrame) -> bool[src]
pub fn ne(&self, other: &BlockFrame) -> bool[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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,