[−][src]Struct rustc_typeck::structured_errors::VariadicError
Fields
sess: &'tcx Sessionspan: Spant: Ty<'tcx>cast_ty: &'tcx strImplementations
impl<'tcx> VariadicError<'tcx>[src]
pub fn new(
sess: &'tcx Session,
span: Span,
t: Ty<'tcx>,
cast_ty: &'tcx str
) -> VariadicError<'tcx>[src]
sess: &'tcx Session,
span: Span,
t: Ty<'tcx>,
cast_ty: &'tcx str
) -> VariadicError<'tcx>
Trait Implementations
impl<'tcx> StructuredDiagnostic<'tcx> for VariadicError<'tcx>[src]
pub fn session(&self) -> &Session[src]
pub fn code(&self) -> DiagnosticId[src]
pub fn common(&self) -> DiagnosticBuilder<'tcx>[src]
pub fn extended(&self, err: DiagnosticBuilder<'tcx>) -> DiagnosticBuilder<'tcx>[src]
pub fn diagnostic(&self) -> DiagnosticBuilder<'tcx>[src]
pub fn regular(&self, err: DiagnosticBuilder<'tcx>) -> DiagnosticBuilder<'tcx>[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for VariadicError<'tcx>
impl<'tcx> !Send for VariadicError<'tcx>
impl<'tcx> !Sync for VariadicError<'tcx>
impl<'tcx> Unpin for VariadicError<'tcx>
impl<'tcx> !UnwindSafe for VariadicError<'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.