Struct rustc_typeck::structured_errors::missing_cast_for_variadic_arg::MissingCastForVariadicArg
source · [−]pub struct MissingCastForVariadicArg<'tcx> {
pub sess: &'tcx Session,
pub span: Span,
pub ty: Ty<'tcx>,
pub cast_ty: &'tcx str,
}Fields
sess: &'tcx Sessionspan: Spanty: Ty<'tcx>cast_ty: &'tcx strTrait Implementations
sourceimpl<'tcx> StructuredDiagnostic<'tcx> for MissingCastForVariadicArg<'tcx>
impl<'tcx> StructuredDiagnostic<'tcx> for MissingCastForVariadicArg<'tcx>
fn session(&self) -> &Session
fn code(&self) -> DiagnosticId
fn diagnostic_common(&self) -> DiagnosticBuilder<'tcx>
fn diagnostic_extended(
&self,
err: DiagnosticBuilder<'tcx>
) -> DiagnosticBuilder<'tcx>
fn diagnostic(&self) -> DiagnosticBuilder<'tcx>
fn diagnostic_regular(
&self,
err: DiagnosticBuilder<'tcx>
) -> DiagnosticBuilder<'tcx>
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for MissingCastForVariadicArg<'tcx>
impl<'tcx> !Send for MissingCastForVariadicArg<'tcx>
impl<'tcx> !Sync for MissingCastForVariadicArg<'tcx>
impl<'tcx> Unpin for MissingCastForVariadicArg<'tcx>
impl<'tcx> !UnwindSafe for MissingCastForVariadicArg<'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized,
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: 40 bytes