Struct rustc_trait_selection::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: Spanelse_sp: Spanouter: Option<Span>semicolon: Option<(Span, StatementAsExpression)>opt_suggest_box_span: Option<Span>Auto Trait Implementations
impl RefUnwindSafe for IfExpressionCauseimpl !Send for IfExpressionCauseimpl !Sync for IfExpressionCauseimpl Unpin for IfExpressionCauseimpl UnwindSafe for IfExpressionCauseBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> TLayout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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