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
Show fields
Show fields
Implementations
impl<'tcx> AnnotatedBorrowFnSignature<'tcx>[src]
impl<'tcx> AnnotatedBorrowFnSignature<'tcx>[src]pub(in borrow_check) fn emit(
&self,
cx: &mut MirBorrowckCtxt<'_, 'tcx>,
diag: &mut DiagnosticBuilder<'_>
) -> String[src]
pub(in borrow_check) fn emit(
&self,
cx: &mut MirBorrowckCtxt<'_, 'tcx>,
diag: &mut DiagnosticBuilder<'_>
) -> String[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]