[−][src]Struct rustc_middle::ty::consts::int::ConstInt

pub struct ConstInt {
    int: ScalarInt,
    signed: bool,
    is_ptr_sized_integral: bool,
}

A type for representing any integer. Only used for printing.

Fields

int: ScalarInt

The "untyped" variant of ConstInt.

signed: bool

Whether the value is of a signed integer type.

is_ptr_sized_integral: bool

Whether the value is a usize or isize type.

Implementations

impl ConstInt[src]

pub fn new(int: ScalarInt, signed: bool, is_ptr_sized_integral: bool) -> Self[src]

Trait Implementations

impl Clone for ConstInt[src]

impl Copy for ConstInt[src]

impl Debug for ConstInt[src]

Auto Trait Implementations

impl RefUnwindSafe for ConstInt

impl Send for ConstInt

impl Sync for ConstInt

impl Unpin for ConstInt

impl UnwindSafe for ConstInt

Blanket Implementations

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

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy, 
[src]

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

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

impl<'a, T> Captures<'a> 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> MaybeResult<T> for T[src]

type Error = !

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

type Owned = T

The resulting type after obtaining ownership.

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]