Struct rustc_trait_selection::traits::util::traits::IfExpressionCause
source · [−]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 IfExpressionCause
impl !Send for IfExpressionCause
impl !Sync for IfExpressionCause
impl Unpin for IfExpressionCause
impl UnwindSafe for IfExpressionCause
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'tcx, T> IsSuggestable<'tcx> for T where
T: TypeVisitable<'tcx>,
impl<'tcx, T> IsSuggestable<'tcx> for T where
T: TypeVisitable<'tcx>,
sourcefn is_suggestable(self, tcx: TyCtxt<'tcx>) -> bool
fn is_suggestable(self, tcx: TyCtxt<'tcx>) -> bool
Whether this makes sense to suggest in a diagnostic. 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: 52 bytes