[−][src]Struct rustc_mir::interpret::ImmTy
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]
i: impl Into<u128>,
layout: TyAndLayout<'tcx>
) -> Option<Self>
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]
i: impl Into<i128>,
layout: TyAndLayout<'tcx>
) -> Option<Self>
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.
pub fn deref(&self) -> &Immediate<Tag>[src]
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,
Tag: Unpin,
impl<'tcx, Tag = ()> !UnwindSafe for ImmTy<'tcx, Tag>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.