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
sourceimpl<'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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
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: 48 bytes