Struct rustc_mir_build::thir::Block[−][src]

pub struct Block<'thir, 'tcx> {
    pub targeted_by_break: bool,
    pub region_scope: Scope,
    pub opt_destruction_scope: Option<Scope>,
    pub span: Span,
    pub stmts: &'thir [Stmt<'thir, 'tcx>],
    pub expr: Option<&'thir Expr<'thir, 'tcx>>,
    pub safety_mode: BlockSafety,
}

Fields

targeted_by_break: boolregion_scope: Scopeopt_destruction_scope: Option<Scope>span: Spanstmts: &'thir [Stmt<'thir, 'tcx>]expr: Option<&'thir Expr<'thir, 'tcx>>safety_mode: BlockSafety

Trait Implementations

impl<'thir, 'tcx> Debug for Block<'thir, 'tcx>[src]

Auto Trait Implementations

impl<'thir, 'tcx> !RefUnwindSafe for Block<'thir, 'tcx>

impl<'thir, 'tcx> !Send for Block<'thir, 'tcx>

impl<'thir, 'tcx> !Sync for Block<'thir, 'tcx>

impl<'thir, 'tcx> Unpin for Block<'thir, 'tcx> where
    'tcx: 'thir, 

impl<'thir, 'tcx> !UnwindSafe for Block<'thir, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.