Struct rustc_mir::interpret::ImmTy [−][src]
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]
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: Copy> Copy for ImmTy<'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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]