Struct rustc_infer::traits::IfExpressionCause [−][src]
pub struct IfExpressionCause {
pub then: Span,
pub else_sp: Span,
pub outer: Option<Span>,
pub semicolon: Option<(Span, StatementAsExpression)>,
pub opt_suggest_box_span: Option<Span>,
}
Fields
then: Span
else_sp: Span
outer: Option<Span>
semicolon: Option<(Span, StatementAsExpression)>
opt_suggest_box_span: Option<Span>
Auto Trait Implementations
impl RefUnwindSafe for IfExpressionCause
impl !Send for IfExpressionCause
impl !Sync for IfExpressionCause
impl Unpin for IfExpressionCause
impl UnwindSafe for IfExpressionCause
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
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: 52 bytes