Enum rustc_mir::borrow_check::diagnostics::conflict_errors::AnnotatedBorrowFnSignature [−][src]
enum AnnotatedBorrowFnSignature<'tcx> {
NamedFunction {
arguments: Vec<(Ty<'tcx>, Span)>,
return_ty: Ty<'tcx>,
return_span: Span,
},
AnonymousFunction {
argument_ty: Ty<'tcx>,
argument_span: Span,
return_ty: Ty<'tcx>,
return_span: Span,
},
Closure {
argument_ty: Ty<'tcx>,
argument_span: Span,
},
}Variants
Fields of AnonymousFunction
Implementations
pub(in borrow_check) fn emit(
&self,
cx: &mut MirBorrowckCtxt<'_, 'tcx>,
diag: &mut DiagnosticBuilder<'_>
) -> String
pub(in borrow_check) fn emit(
&self,
cx: &mut MirBorrowckCtxt<'_, 'tcx>,
diag: &mut DiagnosticBuilder<'_>
) -> String
Annotate the provided diagnostic with information about borrow from the fn signature that helps explain.
Trait Implementations
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for AnnotatedBorrowFnSignature<'tcx>
impl<'tcx> !Send for AnnotatedBorrowFnSignature<'tcx>
impl<'tcx> !Sync for AnnotatedBorrowFnSignature<'tcx>
impl<'tcx> Unpin for AnnotatedBorrowFnSignature<'tcx>
impl<'tcx> !UnwindSafe for AnnotatedBorrowFnSignature<'tcx>
Blanket Implementations
Layout
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: 48 bytes