Enum rustc_middle::hir::map::blocks::Code [−][src]
pub enum Code<'a> {
FnLike(FnLikeNode<'a>),
Expr(&'a Expr<'a>),
}
Expand description
Carries either an FnLikeNode or an Expr, as these are the two constructs that correspond to “code” (as in, something from which we can construct a control-flow graph).
Variants
FnLike(FnLikeNode<'a>)
Tuple Fields of FnLike
0: FnLikeNode<'a>
Expr(&'a Expr<'a>)
Tuple Fields of Expr
0: &'a Expr<'a>
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Code<'a>
impl<'a> !UnwindSafe for Code<'a>
Blanket Implementations
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: 24 bytes
Size for each variant:
FnLike
: 16 bytesExpr
: 8 bytes