Struct rustc_passes::layout_test::UnwrapLayoutCx[−][src]

struct UnwrapLayoutCx<'tcx> {
    tcx: TyCtxt<'tcx>,
    param_env: ParamEnv<'tcx>,
}

Fields

tcx: TyCtxt<'tcx>param_env: ParamEnv<'tcx>

Trait Implementations

impl<'tcx> HasDataLayout for UnwrapLayoutCx<'tcx>[src]

impl<'tcx> HasParamEnv<'tcx> for UnwrapLayoutCx<'tcx>[src]

fn param_env(&self) -> ParamEnv<'tcx>[src]

impl<'tcx> HasTyCtxt<'tcx> for UnwrapLayoutCx<'tcx>[src]

fn tcx(&self) -> TyCtxt<'tcx>[src]

impl<'tcx> LayoutOf for UnwrapLayoutCx<'tcx>[src]

type Ty = Ty<'tcx>

type TyAndLayout = TyAndLayout<'tcx>

fn layout_of(&self, ty: Ty<'tcx>) -> Self::TyAndLayout[src]

fn spanned_layout_of(&self, ty: Self::Ty, _span: Span) -> Self::TyAndLayout[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for UnwrapLayoutCx<'tcx>

impl<'tcx> !Send for UnwrapLayoutCx<'tcx>

impl<'tcx> !Sync for UnwrapLayoutCx<'tcx>

impl<'tcx> Unpin for UnwrapLayoutCx<'tcx>

impl<'tcx> !UnwindSafe for UnwrapLayoutCx<'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.