Enum rustc_infer::infer::error_reporting::need_type_info::UseDiagnostic [−][src]
An observation about the use site of a type to be emitted as an additional note in an inference failure error.
Variants
Records the types inferred before and after From::from is called on the
error value within the desugaring of the ? operator.
Implementations
impl UseDiagnostic<'_>[src]
fn descr(&self) -> &'static str[src]
Return a descriptor of the value at the use site
fn type_descr(&self) -> &'static str[src]
Return a descriptor of the type at the use site
fn applies_to(&self, span: Span) -> bool[src]
fn attach_note(&self, err: &mut DiagnosticBuilder<'_>)[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for UseDiagnostic<'tcx>
impl<'tcx> !Send for UseDiagnostic<'tcx>
impl<'tcx> !Sync for UseDiagnostic<'tcx>
impl<'tcx> Unpin for UseDiagnostic<'tcx>
impl<'tcx> !UnwindSafe for UseDiagnostic<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.