[−][src]Struct rustc_mir::interpret::ImmTy

pub struct ImmTy<'tcx, Tag = ()> {
    imm: Immediate<Tag>,
    pub layout: TyAndLayout<'tcx>,
}

Fields

imm: Immediate<Tag>layout: TyAndLayout<'tcx>

Implementations

impl<'tcx, Tag: Copy> ImmTy<'tcx, Tag>[src]

pub fn from_scalar(val: Scalar<Tag>, layout: TyAndLayout<'tcx>) -> Self[src]

pub fn from_immediate(imm: Immediate<Tag>, layout: TyAndLayout<'tcx>) -> Self[src]

pub fn try_from_uint(
    i: impl Into<u128>,
    layout: TyAndLayout<'tcx>
) -> Option<Self>
[src]

pub fn from_uint(i: impl Into<u128>, layout: TyAndLayout<'tcx>) -> Self[src]

pub fn try_from_int(
    i: impl Into<i128>,
    layout: TyAndLayout<'tcx>
) -> Option<Self>
[src]

pub fn from_int(i: impl Into<i128>, layout: TyAndLayout<'tcx>) -> Self[src]

pub fn to_const_int(self) -> ConstInt[src]

Methods from Deref<Target = Immediate<Tag>>

Trait Implementations

impl<'tcx, Tag: Clone> Clone for ImmTy<'tcx, Tag>[src]

impl<'tcx, Tag: Copy> Copy for ImmTy<'tcx, Tag>[src]

impl<'tcx, Tag: Debug> Debug for ImmTy<'tcx, Tag>[src]

impl<'tcx, Tag> Deref for ImmTy<'tcx, Tag>[src]

type Target = Immediate<Tag>

The resulting type after dereferencing.

impl<Tag: Copy, 'tcx> Display for ImmTy<'tcx, Tag>[src]

impl<'tcx, Tag> From<ImmTy<'tcx, Tag>> for OpTy<'tcx, Tag>[src]

Auto Trait Implementations

impl<'tcx, Tag = ()> !RefUnwindSafe for ImmTy<'tcx, Tag>

impl<'tcx, Tag = ()> !Send for ImmTy<'tcx, Tag>

impl<'tcx, Tag = ()> !Sync for ImmTy<'tcx, Tag>

impl<'tcx, Tag> Unpin for ImmTy<'tcx, Tag> where
    Tag: Unpin, 

impl<'tcx, Tag = ()> !UnwindSafe for ImmTy<'tcx, Tag>

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized, 
[src]

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.

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.

impl<T> WithConstness for T[src]