pub struct SizedUnsizedCast<'tcx> {
pub sess: &'tcx Session,
pub span: Span,
pub expr_ty: Ty<'tcx>,
pub cast_ty: String,
}
Fields§
§sess: &'tcx Session
§span: Span
§expr_ty: Ty<'tcx>
§cast_ty: String
Trait Implementations§
source§impl<'tcx> StructuredDiagnostic<'tcx> for SizedUnsizedCast<'tcx>
impl<'tcx> StructuredDiagnostic<'tcx> for SizedUnsizedCast<'tcx>
fn session(&self) -> &Session
fn code(&self) -> DiagnosticId
fn diagnostic_common(&self) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
fn diagnostic_extended(
&self,
err: DiagnosticBuilder<'tcx, ErrorGuaranteed>
) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
fn diagnostic(&self) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
fn diagnostic_regular(
&self,
err: DiagnosticBuilder<'tcx, ErrorGuaranteed>
) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for SizedUnsizedCast<'tcx>
impl<'tcx> !Send for SizedUnsizedCast<'tcx>
impl<'tcx> !Sync for SizedUnsizedCast<'tcx>
impl<'tcx> Unpin for SizedUnsizedCast<'tcx>
impl<'tcx> !UnwindSafe for SizedUnsizedCast<'tcx>
Blanket Implementations§
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: 48 bytes