Struct rustc_infer::traits::IfExpressionCause
source · pub struct IfExpressionCause<'tcx> {
pub then_id: HirId,
pub else_id: HirId,
pub then_ty: Ty<'tcx>,
pub else_ty: Ty<'tcx>,
pub outer_span: Option<Span>,
pub opt_suggest_box_span: Option<Span>,
}
Fields§
§then_id: HirId
§else_id: HirId
§then_ty: Ty<'tcx>
§else_ty: Ty<'tcx>
§outer_span: Option<Span>
§opt_suggest_box_span: Option<Span>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for IfExpressionCause<'tcx>
impl<'tcx> !Send for IfExpressionCause<'tcx>
impl<'tcx> !Sync for IfExpressionCause<'tcx>
impl<'tcx> Unpin for IfExpressionCause<'tcx>
impl<'tcx> !UnwindSafe for IfExpressionCause<'tcx>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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: 56 bytes